We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb5a32c commit 2435af5Copy full SHA for 2435af5
src/json-truncate.js
@@ -39,7 +39,7 @@ const truncate = (obj, options = {}, curDepth = 0) => {
39
return newArr
40
} else {
41
const newObj = {}
42
- for (let key in obj) {
+ for (const key in obj) {
43
if (isFlat(obj[key])) {
44
newObj[key] = obj[key]
45
0 commit comments