File manager - Edit - /usr/local/lib/node_modules/forever/node_modules/prettyjson/lib/utils.js
Back
'use strict'; /** * Creates a string with the same length as `numSpaces` parameter **/ exports.indent = function indent(numSpaces) { return new Array(numSpaces+1).join(' '); }; /** * Gets the string length of the longer index in a hash **/ exports.getMaxIndexLength = function(input) { var maxWidth = 0; Object.getOwnPropertyNames(input).forEach(function(key) { // Skip undefined values. if (input[key] === undefined) { return; } maxWidth = Math.max(maxWidth, key.length); }); return maxWidth; };
| ver. 1.4 |
Github
|
.
| PHP 8.3.31 | Generation time: 0 |
proxy
|
phpinfo
|
Settings