UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

13 lines (12 loc) 456 B
export default reorder; /** * Reorder `array` according to the specified indexes where the element at * the first index is assigned as the first element, the element at * the second index is assigned as the second element, and so on. * * @private * @param {Array} array The array to reorder. * @param {Array} indexes The arranged array indexes. * @returns {Array} Returns `array`. */ declare function reorder(array: any[], indexes: any[]): any[];