@softwareventures/array 8.0.0 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +0 -6
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import type { Comparator } from "@softwareventures/ordered";
|
|
2
2
|
export declare function copy<T>(array: ArrayLike<T>): T[];
|
|
3
|
-
/** @internal This implementation is for internal use only, the exported declaration is above */
|
|
4
|
-
export declare const copy: <T>(array: ArrayLike<T>) => T[];
|
|
5
3
|
export declare function isArray(value: unknown): value is readonly unknown[];
|
|
6
|
-
/** @internal This implementation is for internal use only, the exported declaration is above */
|
|
7
|
-
export declare const isArray: (value: unknown) => value is unknown[];
|
|
8
4
|
export declare function isArrayLike(value: unknown): value is ArrayLike<unknown>;
|
|
9
5
|
export declare function coerce<T>(array: ArrayLike<T>): readonly T[];
|
|
10
6
|
export declare function first<T>(array: ArrayLike<T>): T | null;
|
|
@@ -44,8 +40,6 @@ export declare function notEqualFn<T>(b: ArrayLike<T>, elementsEqual?: (a: T, b:
|
|
|
44
40
|
export declare function prefixMatch<T>(a: ArrayLike<T>, b: ArrayLike<T>, elementsEqual?: (a: T, b: T) => boolean): boolean;
|
|
45
41
|
export declare function prefixMatchFn<T>(b: ArrayLike<T>, elementsEqual?: (a: T, b: T) => boolean): (a: ArrayLike<T>) => boolean;
|
|
46
42
|
export declare function map<T, U>(array: ArrayLike<T>, f: (element: T, index: number) => U): U[];
|
|
47
|
-
/** @internal This implementation is for internal use only, the exported declaration is above */
|
|
48
|
-
export declare const map: <T, U>(array: ArrayLike<T>, f: (element: T, index: number) => U) => U[];
|
|
49
43
|
export declare function mapFn<T, U>(f: (element: T, index: number) => U): (array: ArrayLike<T>) => U[];
|
|
50
44
|
export declare function filter<T, U extends T>(array: ArrayLike<T>, predicate: (element: T, index: number) => element is U): U[];
|
|
51
45
|
export declare function filter<T>(array: ArrayLike<T>, predicate: (element: T, index: number) => boolean): T[];
|