fdsfd
This commit is contained in:
parent
628618df89
commit
e031240dff
3749 changed files with 1120848 additions and 1 deletions
21
node_modules/lodash/_baseSortBy.js
generated
vendored
Normal file
21
node_modules/lodash/_baseSortBy.js
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
/**
|
||||
* 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`.
|
||||
*/
|
||||
function baseSortBy(array, comparer) {
|
||||
var length = array.length;
|
||||
|
||||
array.sort(comparer);
|
||||
while (length--) {
|
||||
array[length] = array[length].value;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
module.exports = baseSortBy;
|
Loading…
Add table
Add a link
Reference in a new issue