Skip to content

Commit 12840b5

Browse files
author
Philipp Alferov
committedAug 20, 2018
Use Object.assign istead of lodash.assign
1 parent d8c5783 commit 12840b5

File tree

4 files changed

+1
-12
lines changed

4 files changed

+1
-12
lines changed
 

‎index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
'use strict';
2-
var assign = require('lodash.assign');
32
var property = require('nested-property');
43
var keyBy = require('lodash.keyby');
54

@@ -69,7 +68,7 @@ var groupByParents = function(array, options) {
6968
*/
7069

7170
module.exports = function arrayToTree(data, options) {
72-
options = assign(
71+
options = Object.assign(
7372
{
7473
parentProperty: 'parent_id',
7574
childrenProperty: 'children',

‎package-lock.json

-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
},
3434
"license": "MIT",
3535
"dependencies": {
36-
"lodash.assign": "^4.0.6",
3736
"lodash.keyby": "^4.6.0",
3837
"nested-property": "^0.0.7"
3938
}

‎yarn.lock

-4
Original file line numberDiff line numberDiff line change
@@ -521,10 +521,6 @@ levn@^0.3.0, levn@~0.3.0:
521521
prelude-ls "~1.1.2"
522522
type-check "~0.3.2"
523523

524-
lodash.assign@^4.0.6:
525-
version "4.2.0"
526-
resolved "https://registry.yarnpkg.com/lodash.assign/-/lodash.assign-4.2.0.tgz#0d99f3ccd7a6d261d19bdaeb9245005d285808e7"
527-
528524
lodash.keyby@^4.6.0:
529525
version "4.6.0"
530526
resolved "https://registry.yarnpkg.com/lodash.keyby/-/lodash.keyby-4.6.0.tgz#7f6a1abda93fd24e22728a4d361ed8bcba5a4354"

0 commit comments

Comments
 (0)