diff --git a/index.js b/index.js index 3d7e996..92051f4 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,4 @@ 'use strict'; -var assign = require('lodash.assign'); var property = require('nested-property'); var keyBy = require('lodash.keyby'); @@ -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', diff --git a/package-lock.json b/package-lock.json index 60f943c..fbfde60 100644 --- a/package-lock.json +++ b/package-lock.json @@ -756,11 +756,6 @@ "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==", "dev": true }, - "lodash.assign": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz", - "integrity": "sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=" - }, "lodash.keyby": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/lodash.keyby/-/lodash.keyby-4.6.0.tgz", diff --git a/package.json b/package.json index 5aae64f..f86bb7f 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,6 @@ }, "license": "MIT", "dependencies": { - "lodash.assign": "^4.0.6", "lodash.keyby": "^4.6.0", "nested-property": "^0.0.7" } diff --git a/yarn.lock b/yarn.lock index ab18615..1c90ca4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"