Skip to content

Commit db3fb60

Browse files
committed
fix: don't use null coalescing operator
1 parent c8d9ce3 commit db3fb60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function cloneObjectDeep (val, instanceClone) {
3131
}
3232
if (instanceClone || isPlainObject(val)) {
3333
const res = new val.constructor();
34-
const circulars = (whatsCircular(val) ?? []).map(c => get(val, c));
34+
const circulars = (whatsCircular(val) || []).map(c => get(val, c));
3535

3636
for (let key in val) {
3737
if (includes(circulars, val[key])) {

0 commit comments

Comments
 (0)