forked from technoindianjr/JsBarcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Dev Dependencies and ESLint config
- Loading branch information
1 parent
58f6d86
commit d14f85f
Showing
4 changed files
with
15 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1 @@ | ||
export default merge; | ||
|
||
function merge(old, replaceObj) { | ||
var newMerge = {}; | ||
var k; | ||
for (k in old) { | ||
if (old.hasOwnProperty(k)) { | ||
newMerge[k] = old[k]; | ||
} | ||
} | ||
for (k in replaceObj) { | ||
if(replaceObj.hasOwnProperty(k) && typeof replaceObj[k] !== "undefined"){ | ||
newMerge[k] = replaceObj[k]; | ||
} | ||
} | ||
return newMerge; | ||
} | ||
export default (old, replaceObj) => ({ ...old, ...replaceObj }); |