kc-orderby-res
v1.0.7
Published
[js] Orderby results array
Downloads
5
Readme
OrderbyRes
[js] Orderby results array
Install
npm install kc-orderby-res
Use
var orderbyRes = require('kc-orderby-res');
var arr = [
{ k: 'B'},
{ k: 'C'},
{ k: 'A'},
{ k: 'D'}
];
var res = orderbyRes(arr, 'k');
console.log(res);