/
usr
/
lib
/
node_modules
/
npm
/
lib
/
utils
/
File Upload :
llllll
Current File: //usr/lib/node_modules/npm/lib/utils/deep-sort-object.js
'use strict' var sortedObject = require('sorted-object') module.exports = function deepSortObject (obj) { if (obj == null || typeof obj !== 'object') return obj if (obj instanceof Array) { return obj.map(deepSortObject) } obj = sortedObject(obj) Object.keys(obj).forEach(function (key) { obj[key] = deepSortObject(obj[key]) }) return obj }
Copyright ©2k19 -
Hexid
|
Tex7ure