UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

12 lines (7 loc) 244 B
'use strict'; Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const orderBy = require('./orderBy.js'); function sortBy(arr, criteria) { return orderBy.orderBy(arr, criteria, ['asc']); } exports.sortBy = sortBy;