Skip to content

Commit

Permalink
Use keyBy rather than the removed indexBy
Browse files Browse the repository at this point in the history
Upgrade dependencies
  • Loading branch information
jdus committed Oct 31, 2018
1 parent 4356e69 commit 7a1ac6a
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 @@ -27,7 +27,7 @@
},
"homepage": "https://github.com/viruschidai/diff-json",
"dependencies": {
"lodash": "^2.4.1"
"lodash": ">=4.0.0"
},
"devDependencies": {
"coffee-script": "^1.7.1",
Expand Down
2 changes: 1 addition & 1 deletion src/changesets.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
convertArrayToObj = (arr, uniqKey) ->
obj = {}
if uniqKey isnt '$index'
obj = _.indexBy arr, uniqKey
obj = _.keyBy arr, uniqKey
else
for index, value of arr then obj[index] = value
return obj
Expand Down

0 comments on commit 7a1ac6a

Please sign in to comment.