UNPKG

@n3okill/utils

Version:
15 lines 562 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.cloneArray = cloneArray; const clone_1 = require("../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 */ function cloneArray(source, deep = false, transform) { return (0, clone_1.clone)(source, deep, transform); } //# sourceMappingURL=cloneArray.js.map