Skip to content

Commit

Permalink
Use Object.assign istead of lodash.assign
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Alferov committed Aug 20, 2018
1 parent d8c5783 commit 12840b5
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 12 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
'use strict';
var assign = require('lodash.assign');
var property = require('nested-property');
var keyBy = require('lodash.keyby');

Expand Down Expand Up @@ -69,7 +68,7 @@ var groupByParents = function(array, options) {
*/

module.exports = function arrayToTree(data, options) {
options = assign(
options = Object.assign(
{
parentProperty: 'parent_id',
childrenProperty: 'children',
Expand Down
5 changes: 0 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
},
"license": "MIT",
"dependencies": {
"lodash.assign": "^4.0.6",
"lodash.keyby": "^4.6.0",
"nested-property": "^0.0.7"
}
Expand Down
4 changes: 0 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -521,10 +521,6 @@ levn@^0.3.0, levn@~0.3.0:
prelude-ls "~1.1.2"
type-check "~0.3.2"

lodash.assign@^4.0.6:
version "4.2.0"
resolved "https://registry.yarnpkg.com/lodash.assign/-/lodash.assign-4.2.0.tgz#0d99f3ccd7a6d261d19bdaeb9245005d285808e7"

lodash.keyby@^4.6.0:
version "4.6.0"
resolved "https://registry.yarnpkg.com/lodash.keyby/-/lodash.keyby-4.6.0.tgz#7f6a1abda93fd24e22728a4d361ed8bcba5a4354"
Expand Down

0 comments on commit 12840b5

Please sign in to comment.