This commit is contained in:
2021-11-21 11:18:28 +01:00
parent 7a358eb836
commit 230b10b2a3
9339 changed files with 892519 additions and 62 deletions

22
node_modules/sort-keys-length/index.js generated vendored Normal file
View File

@@ -0,0 +1,22 @@
'use strict';
var sortKeys = require('sort-keys');
/**
* Sort object keys by length
*
* @param obj
* @api public
*/
module.exports.desc = function (obj) {
return sortKeys(obj, function (a, b) {
return b.length - a.length;
});
}
module.exports.asc = function (obj) {
return sortKeys(obj, function (a, b) {
return a.length - b.length;
});
}