UNPKG

@n3okill/utils

Version:
8 lines (7 loc) 290 B
/** * Deep Clone given array into new array * @param source Original array to be cloned * @param transform Function to transform the objects in the array * @returns The cloned array */ export declare function deepCloneArray<T>(source: Array<T>, transform?: (value: T) => T): Array<T>;