22// https://github.com/tc39/proposal-array-filtering
33
44interface Array < T > {
5+ /**
6+ * Removes the items that return true
7+ * @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
8+ * callbackFn function one time for each element in the array.
9+ * @param thisArg If provided, it will be used as this value for each invocation of
10+ * predicate. If it is not provided, undefined is used instead.
11+ */
512 filterReject ( callbackFn : ( value : T , index : number , target : T [ ] ) => boolean , thisArg ?: any ) : T [ ] ;
613}
714
815interface Int8Array {
16+ /**
17+ * Removes the items that return true
18+ * @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
19+ * callbackFn function one time for each element in the array.
20+ * @param thisArg If provided, it will be used as this value for each invocation of
21+ * predicate. If it is not provided, undefined is used instead.
22+ */
923 filterReject ( callbackFn : ( value : number , index : number , target : Int8Array ) => boolean , thisArg ?: any ) : Int8Array ;
1024}
1125
1226interface Uint8Array {
27+ /**
28+ * Removes the items that return true
29+ * @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
30+ * callbackFn function one time for each element in the array.
31+ * @param thisArg If provided, it will be used as this value for each invocation of
32+ * predicate. If it is not provided, undefined is used instead.
33+ */
1334 filterReject ( callbackFn : ( value : number , index : number , target : Uint8Array ) => boolean , thisArg ?: any ) : Uint8Array ;
1435}
1536
1637interface Uint8ClampedArray {
38+ /**
39+ * Removes the items that return true
40+ * @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
41+ * callbackFn function one time for each element in the array.
42+ * @param thisArg If provided, it will be used as this value for each invocation of
43+ * predicate. If it is not provided, undefined is used instead.
44+ */
1745 filterReject ( callbackFn : ( value : number , index : number , target : Uint8ClampedArray ) => boolean , thisArg ?: any ) : Uint8ClampedArray ;
1846}
1947
2048interface Int16Array {
49+ /**
50+ * Removes the items that return true
51+ * @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
52+ * callbackFn function one time for each element in the array.
53+ * @param thisArg If provided, it will be used as this value for each invocation of
54+ * predicate. If it is not provided, undefined is used instead.
55+ */
2156 filterReject ( callbackFn : ( value : number , index : number , target : Int16Array ) => boolean , thisArg ?: any ) : Int16Array ;
2257}
2358
2459interface Uint16Array {
60+ /**
61+ * Removes the items that return true
62+ * @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
63+ * callbackFn function one time for each element in the array.
64+ * @param thisArg If provided, it will be used as this value for each invocation of
65+ * predicate. If it is not provided, undefined is used instead.
66+ */
2567 filterReject ( callbackFn : ( value : number , index : number , target : Uint16Array ) => boolean , thisArg ?: any ) : Uint16Array ;
2668}
2769
2870interface Int32Array {
71+ /**
72+ * Removes the items that return true
73+ * @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
74+ * callbackFn function one time for each element in the array.
75+ * @param thisArg If provided, it will be used as this value for each invocation of
76+ * predicate. If it is not provided, undefined is used instead.
77+ */
2978 filterReject ( callbackFn : ( value : number , index : number , target : Int32Array ) => boolean , thisArg ?: any ) : Int32Array ;
3079}
3180
3281interface Uint32Array {
82+ /**
83+ * Removes the items that return true
84+ * @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
85+ * callbackFn function one time for each element in the array.
86+ * @param thisArg If provided, it will be used as this value for each invocation of
87+ * predicate. If it is not provided, undefined is used instead.
88+ */
3389 filterReject ( callbackFn : ( value : number , index : number , target : Uint32Array ) => boolean , thisArg ?: any ) : Uint32Array ;
3490}
3591
3692interface Float32Array {
93+ /**
94+ * Removes the items that return true
95+ * @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
96+ * callbackFn function one time for each element in the array.
97+ * @param thisArg If provided, it will be used as this value for each invocation of
98+ * predicate. If it is not provided, undefined is used instead.
99+ */
37100 filterReject ( callbackFn : ( value : number , index : number , target : Float32Array ) => boolean , thisArg ?: any ) : Float32Array ;
38101}
39102
@@ -42,9 +105,23 @@ interface Float64Array {
42105}
43106
44107interface BigInt64Array {
108+ /**
109+ * Removes the items that return true
110+ * @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
111+ * callbackFn function one time for each element in the array.
112+ * @param thisArg If provided, it will be used as this value for each invocation of
113+ * predicate. If it is not provided, undefined is used instead.
114+ */
45115 filterReject ( callbackFn : ( value : bigint , index : number , target : BigInt64Array ) => boolean , thisArg ?: any ) : BigInt64Array ;
46116}
47117
48118interface BigUint64Array {
119+ /**
120+ * Removes the items that return true
121+ * @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
122+ * callbackFn function one time for each element in the array.
123+ * @param thisArg If provided, it will be used as this value for each invocation of
124+ * predicate. If it is not provided, undefined is used instead.
125+ */
49126 filterReject ( callbackFn : ( value : bigint , index : number , target : BigUint64Array ) => boolean , thisArg ?: any ) : BigUint64Array ;
50127}
0 commit comments