@@ -6,28 +6,20 @@ import {
66 equal as defaultEqual
77} from "@softwareventures/ordered" ;
88
9- // eslint-disable-next-line @typescript-eslint/unbound-method
109const nativeSlice = Array . prototype . slice ;
1110
12- // eslint-disable-next-line @typescript-eslint/unbound-method
1311const nativeReverse = Array . prototype . reverse ;
1412
15- // eslint-disable-next-line @typescript-eslint/unbound-method
1613const nativeConcat = Array . prototype . concat ;
1714
18- // eslint-disable-next-line @typescript-eslint/unbound-method
1915const nativeFilter = Array . prototype . filter ;
2016
21- // eslint-disable-next-line @typescript-eslint/unbound-method
2217const nativeReduce = Array . prototype . reduce ;
2318
24- // eslint-disable-next-line @typescript-eslint/unbound-method
2519const nativeReduceRight = Array . prototype . reduceRight ;
2620
27- // eslint-disable-next-line @typescript-eslint/unbound-method
2821const nativeIndexOf = Array . prototype . indexOf ;
2922
30- // eslint-disable-next-line @typescript-eslint/unbound-method
3123const nativeFindIndex = Array . prototype . findIndex ;
3224
3325// eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -41,15 +33,13 @@ export const copy: <T>(array: ArrayLike<T>) => T[] = Array.from;
4133
4234// eslint-disable-next-line @typescript-eslint/ban-ts-comment
4335// @ts -ignore duplicate identifier: This is the exported declaration, the implementation is below.
44- // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
4536export function isArray ( value : unknown ) : value is readonly unknown [ ] ;
4637
4738/** @internal This implementation is for internal use only, the exported declaration is above */
4839// eslint-disable-next-line @typescript-eslint/ban-ts-comment
4940// @ts -ignore duplicate identifier: This is the actual implementation, the exported declaration is above.
5041export const isArray : ( value : unknown ) => value is unknown [ ] = Array . isArray ;
5142
52- // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
5343export function isArrayLike ( value : unknown ) : value is ArrayLike < unknown > {
5444 return (
5545 typeof value === "object" &&
0 commit comments