We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8d9ce3 commit db3fb60Copy full SHA for db3fb60
index.js
@@ -31,7 +31,7 @@ function cloneObjectDeep (val, instanceClone) {
31
}
32
if (instanceClone || isPlainObject(val)) {
33
const res = new val.constructor();
34
- const circulars = (whatsCircular(val) ?? []).map(c => get(val, c));
+ const circulars = (whatsCircular(val) || []).map(c => get(val, c));
35
36
for (let key in val) {
37
if (includes(circulars, val[key])) {
0 commit comments