mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-24 06:58:34 +02:00
change '_.extend' to 'Object.assign'
This commit is contained in:
parent
7ae05ce932
commit
052aa1e299
13 changed files with 27 additions and 27 deletions
|
@ -92,7 +92,7 @@ TreeCompare.compareAllBranchesWithinTrees = function(treeA, treeB) {
|
|||
treeA = this.convertTreeSafe(treeA);
|
||||
treeB = this.convertTreeSafe(treeB);
|
||||
|
||||
var allBranches = _.extend(
|
||||
var allBranches = Object.assign(
|
||||
{},
|
||||
treeA.branches,
|
||||
treeB.branches
|
||||
|
@ -140,7 +140,7 @@ TreeCompare.compareAllBranchesWithinTreesHashAgnostic = function(treeA, treeB) {
|
|||
treeB = this.convertTreeSafe(treeB);
|
||||
this.reduceTreeFields([treeA, treeB]);
|
||||
|
||||
var allBranches = _.extend(
|
||||
var allBranches = Object.assign(
|
||||
{},
|
||||
treeA.branches,
|
||||
treeB.branches
|
||||
|
@ -270,7 +270,7 @@ TreeCompare.getRecurseCompareHashAgnostic = function(treeA, treeB) {
|
|||
// some buildup functions
|
||||
var getStrippedCommitCopy = function(commit) {
|
||||
if (!commit) { return {}; }
|
||||
return _.extend(
|
||||
return Object.assign(
|
||||
{},
|
||||
commit,
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue