Skip to content

Commit

Permalink
Merge branch 'master' into greenkeeper/esdoc-1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsteele committed Oct 14, 2018
2 parents a59040e + 9243746 commit b0ab547
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"homepage": "https://github.com/mrsteele/json-truncate#readme",
"devDependencies": {
"babel-cli": "^6.10.1",
"babel-eslint": "^8.0.0",
"babel-eslint": "^9.0.0",
"babel-preset-es2015": "^6.9.0",
"babel-register": "^6.9.0",
"chai": "^4.0.2",
Expand Down
2 changes: 1 addition & 1 deletion src/json-truncate.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const flatTypes = [String, Number, Boolean]

const isDefined = val => val !== null && val !== undefined

const isFlat = val => !isDefined(val) || flatTypes.indexOf(val.constructor) !== -1
const isFlat = val => !isDefined(val) || ~flatTypes.indexOf(val.constructor)

/**
* Truncates variables.
Expand Down

0 comments on commit b0ab547

Please sign in to comment.