You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
192 B
10 lines
192 B
1 month ago
|
module.exports = function getPadLength (obj) {
|
||
|
let longest = 10
|
||
|
for (const name in obj) {
|
||
|
if (name.length + 1 > longest) {
|
||
|
longest = name.length + 1
|
||
|
}
|
||
|
}
|
||
|
return longest
|
||
|
}
|