UNPKG

@n3okill/utils

Version:
9 lines (8 loc) 369 B
/** * Clone given array into new array * @param source Original array to be cloned * @param deep deep If true will deep clone the array, default: `false` * @param transform Function to transform the objects in the array * @returns The cloned array */ export declare function cloneArray<T>(source: Array<T>, deep?: boolean, transform?: (value: T) => T): Array<T>;