UNPKG

@n3okill/utils

Version:
12 lines 443 B
import { clone } from "../mixers/clone"; /** * 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 function cloneArray(source, deep = false, transform) { return clone(source, deep, transform); } //# sourceMappingURL=cloneArray.js.map