UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

20 lines 354 B
//#region src/array/clone.d.ts /** * `clone(array)` * * Creates a shallow copy of `array`. * * ```ts * clone([1, 2, 3, 4]); // [1, 2, 3, 4] * ``` * * ```ts * pipe([1, 2, 3, 4], clone()); // [1, 2, 3, 4] * ``` */ declare const clone: { (): <T>(target: readonly T[]) => T[]; <T>(target: readonly T[]): T[]; }; //#endregion export { clone };