You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
insert(elem: T, index: number): T[]; // insert an element at a specified index
43
49
count(search: RegExp|any): number; // returns total of found items for specified search
50
+
similarities(arr: T[]): T[]; // returns a new array with elements that are both in this array and in the comparison array
51
+
missing(arr: T[]): T[]; // returns a new array with elements that are in this array, but are missing in the comparison array
44
52
}
45
53
```
46
54
@@ -55,7 +63,7 @@ Object {
55
63
keys(): string[]; //returns keys of object itself
56
64
values(): any[]; // returns values of object itself
57
65
entries(): Array<[string, any]>; // returns a nested array of key and corresponding value of object itself
58
-
merge(obj: any): any// returns a new object deeply merged with obj, the current will overwrite obj, if obj has the same property
66
+
merge(obj: any): any// returns a new object deeply merged with obj, the current will overwrite obj, if obj has the same property. Notice will not merge classes
59
67
}
60
68
```
61
69
@@ -67,12 +75,29 @@ String {
67
75
replaceAll(search: string, replace: string): string; // Replace all occurrences of search with replace
68
76
similarity(compare: string): number; // Returns a value between 0 (different) and 1 (same) indicating how similar the string is to compare
69
77
join(iterate: string[]): string; // Returns the array values seperated by the given divider as a string
70
-
partition(): string[]; // Returns split array, but includes separators
78
+
partition(separator: string): string[]; // Returns split array, but includes separators
71
79
toNumber(): number; // converts string to number, if not a number returns NaN
72
80
toBigInt(): number; // converts string to BigInt, if not a number returns NaN
73
81
count(countString: RegExp|any): number; // returns total of found items for specified search;
74
-
swapcase(): string;// Returns a swapped case string
75
-
title(): string; // converts the string into a title string
82
+
swapcase(): string;// Returns a swapped case string -> aLL CASES ARE SWAPPED
83
+
title(): string; // converts the string into a title string -> This Is A Title String
84
+
}
85
+
```
86
+
87
+
### [Promise](/dist/Promise.d.ts)
88
+
89
+
```ts
90
+
Promise {
91
+
caught(): this; // catch all errors in the console without the need to specify a function, similar like promise.catch(console.error)
92
+
}
93
+
```
94
+
95
+
### [Global](/dist/Global.d.ts)
96
+
97
+
```ts
98
+
Global {
99
+
function atob(data:string):string; // Converts a Base64 encoded string back to UTF-8
100
+
function btoa(data:string):string; // Converts a UTF-8 string to a Base64 encoded string
0 commit comments