Skip to content

Commit f8740ed

Browse files
committed
remove shallowMerge
1 parent 061185e commit f8740ed

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/shared/static.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@ const isNull = (...args) => args.reduce((result, arg) => result || arg === undef
99

1010
const isObject = (input) => typeof input === "object" && input !== null;
1111

12-
const shallowMerge = (...sources) => {
13-
for (const source of sources.reverse()) {
14-
if (source !== undefined && !isObject(source)) {
15-
return source;
16-
}
17-
}
18-
return Object.assign({}, ...sources);
19-
};
20-
2112
const tryRequire = (module) => {
2213
try {
2314
return require(module);
@@ -43,7 +34,6 @@ const tryPathReadable = async (path) => {
4334
module.exports = {
4435
isNull,
4536
isObject,
46-
shallowMerge,
4737
tryRequire,
4838
tryJsonParse,
4939
pathReadable,

0 commit comments

Comments
 (0)