UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

13 lines (12 loc) 431 B
export default baseSortBy; /** * The base implementation of `sortBy` which uses `comparer` to define the * sort order of `array` and replaces criteria objects with their corresponding * values. * * @private * @param {Array} array The array to sort. * @param {Function} comparer The function to define sort order. * @returns {Array} Returns `array`. */ declare function baseSortBy(array: any[], comparer: Function): any[];