IPC removed, replaced by WS

This commit is contained in:
Luis Fernando Molina committed 2020-04-06 08:33:07 +02:00
1 parent ba4217fb24
commit 656c193511
503 files changed
+28128 -34498

No files matched your search

+9 -11
View File
@@ -31,6 +31,7 @@ module.exports =
, index
, ordered: x => x // a stub to keep assoc keys in order (in JS it does nothing, it's mostly for Python)
, unique: x => Array.from (index (x))
, arrayConcat: (a, b) => a.concat (b)
/* ............................................. */
@@ -199,7 +200,7 @@ module.exports =
return out
}
return x
}
@@ -217,22 +218,19 @@ module.exports =
/* ............................................. */
, deepExtend: function deepExtend (...xs) {
let out = undefined
for (const x of xs) {
if (isDictionary (x)) {
if (!isObject (out))
if (!isObject (out)) {
out = {}
for (const k in x)
}
for (const k in x) {
out[k] = deepExtend (out[k], x[k])
} else out = x
}
} else {
out = x
}
}
return out
}