|
1 |
| - |
2 | 1 | interface Array<T> {
|
3 |
| - /** Iterator */ |
4 |
| - [Symbol.iterator](): IterableIterator<T>; |
5 |
| - |
6 |
| - /** |
7 |
| - * Returns an object whose properties have the value 'true' |
8 |
| - * when they will be absent when used in a 'with' statement. |
9 |
| - */ |
10 |
| - [Symbol.unscopables](): { |
11 |
| - copyWithin: boolean; |
12 |
| - entries: boolean; |
13 |
| - fill: boolean; |
14 |
| - find: boolean; |
15 |
| - findIndex: boolean; |
16 |
| - keys: boolean; |
17 |
| - values: boolean; |
18 |
| - }; |
19 |
| - |
20 |
| - /** |
21 |
| - * Returns an array of key, value pairs for every entry in the array |
22 |
| - */ |
23 |
| - entries(): IterableIterator<[number, T]>; |
24 |
| - |
25 |
| - /** |
26 |
| - * Returns an list of keys in the array |
27 |
| - */ |
28 |
| - keys(): IterableIterator<number>; |
29 |
| - |
30 |
| - /** |
31 |
| - * Returns an list of values in the array |
32 |
| - */ |
33 |
| - values(): IterableIterator<T>; |
34 |
| - |
35 | 2 | /**
|
36 | 3 | * Returns the value of the first element in the array where predicate is true, and undefined
|
37 | 4 | * otherwise.
|
@@ -85,26 +52,13 @@ interface ArrayConstructor {
|
85 | 52 | */
|
86 | 53 | from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): Array<U>;
|
87 | 54 |
|
88 |
| - /** |
89 |
| - * Creates an array from an iterable object. |
90 |
| - * @param iterable An iterable object to convert to an array. |
91 |
| - * @param mapfn A mapping function to call on every element of the array. |
92 |
| - * @param thisArg Value of 'this' used to invoke the mapfn. |
93 |
| - */ |
94 |
| - from<T, U>(iterable: Iterable<T>, mapfn: (v: T, k: number) => U, thisArg?: any): Array<U>; |
95 | 55 |
|
96 | 56 | /**
|
97 | 57 | * Creates an array from an array-like object.
|
98 | 58 | * @param arrayLike An array-like object to convert to an array.
|
99 | 59 | */
|
100 | 60 | from<T>(arrayLike: ArrayLike<T>): Array<T>;
|
101 | 61 |
|
102 |
| - /** |
103 |
| - * Creates an array from an iterable object. |
104 |
| - * @param iterable An iterable object to convert to an array. |
105 |
| - */ |
106 |
| - from<T>(iterable: Iterable<T>): Array<T>; |
107 |
| - |
108 | 62 | /**
|
109 | 63 | * Returns a new array from a set of elements.
|
110 | 64 | * @param items A set of elements to include in the new array object.
|
|
0 commit comments