@softwareventures/array 7.0.0 → 8.0.0

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/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2018-2023 Software Ventures Limited.
1
+ Copyright 2018-2026 Software Ventures Limited.
2
2
 
3
3
  Permission to use, copy, modify, and/or distribute this software for any purpose
4
4
  with or without fee is hereby granted, provided that the above copyright notice
package/index.d.ts CHANGED
@@ -1,6 +1,10 @@
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[];
3
5
  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[];
4
8
  export declare function isArrayLike(value: unknown): value is ArrayLike<unknown>;
5
9
  export declare function coerce<T>(array: ArrayLike<T>): readonly T[];
6
10
  export declare function first<T>(array: ArrayLike<T>): T | null;
@@ -40,6 +44,8 @@ export declare function notEqualFn<T>(b: ArrayLike<T>, elementsEqual?: (a: T, b:
40
44
  export declare function prefixMatch<T>(a: ArrayLike<T>, b: ArrayLike<T>, elementsEqual?: (a: T, b: T) => boolean): boolean;
41
45
  export declare function prefixMatchFn<T>(b: ArrayLike<T>, elementsEqual?: (a: T, b: T) => boolean): (a: ArrayLike<T>) => boolean;
42
46
  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[];
43
49
  export declare function mapFn<T, U>(f: (element: T, index: number) => U): (array: ArrayLike<T>) => U[];
44
50
  export declare function filter<T, U extends T>(array: ArrayLike<T>, predicate: (element: T, index: number) => element is U): U[];
45
51
  export declare function filter<T>(array: ArrayLike<T>, predicate: (element: T, index: number) => boolean): T[];