【文件属性】:
文件名称:named-merge-sort:对基于属性的对象数组进行合并排序或对值数组进行排序
文件大小:2KB
文件格式:ZIP
更新时间:2021-06-13 00:12:27
JavaScript
命名归并排序
对基于属性的对象数组进行合并排序或对值数组进行排序。
基于在上找到的合并排序。
var mergeSort = require('named-merge-sort');
var things = [
'2013-01',
'2014-12',
'2010-10',
'2011-02',
'2010-05',
'2010-07',
'2011-11'
];
things = mergeSort(things, 0);
console.dir(things);
things = mergeSort(things, 0, 'desc');
console.dir(things);
var things = [
{name: 'Peter'},
{name: 'Lenny'},
{name
【文件预览】:
named-merge-sort-master
----.gitignore(69B)
----README.md(823B)
----.jshintrc(392B)
----package.json(395B)
----index.js(2KB)