add more linter warnings

This commit is contained in:
JFH
2021-05-14 23:28:12 +02:00
parent 1bad5b9037
commit 8b82f1b4d5
9 changed files with 29 additions and 23 deletions

View File

@@ -23,7 +23,7 @@ export function isObject(item) {
export function mergeDeep(target, source) {
let output = Object.assign({}, target);
if (isObject(target) && isObject(source)) {
Object.keys(source).forEach(key => {
Object.keys(source).forEach((key) => {
if (isObject(source[key])) {
if (!(key in target))
Object.assign(output, { [key]: source[key] });