CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
_baseSortBy.js22 linesDownload Raw Back to lodash
1/**2 * The base implementation of `_.sortBy` which uses `comparer` to define the3 * sort order of `array` and replaces criteria objects with their corresponding4 * values.5 *6 * @private7 * @param {Array} array The array to sort.8 * @param {Function} comparer The function to define sort order.9 * @returns {Array} Returns `array`.10 */11function baseSortBy(array, comparer) {12  var length = array.length;13 14  array.sort(comparer);15  while (length--) {16    array[length] = array[length].value;17  }18  return array;19}20 21module.exports = baseSortBy;22 
basant307/AI_Governance_Project · CoolFace