Skip to content

Commit

Permalink
chore: fixing linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsteele committed Apr 5, 2021
1 parent 33e290f commit 65abe20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion json-truncate.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const truncate = (obj, options = {}, curDepth = 0) => {
return obj
} else if (Array.isArray(obj)) {
const newArr = []
obj.map(value => {
obj.forEach(value => {
if (isFlat(value)) {
newArr.push(value)
} else {
Expand Down
2 changes: 1 addition & 1 deletion test/mocha.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe('JSONtruncate', () => {
})

it('should return flat objects', () => {
;[5, true, false, 'hello'].map(val => {
;[5, true, false, 'hello'].forEach(val => {
src(val, 5).should.equal(val)
})
})
Expand Down

0 comments on commit 65abe20

Please sign in to comment.