Skip to content

Commit d4f82b5

Browse files
Mat TaylorMat Taylor
authored andcommitted
clone
1 parent 9260cd0 commit d4f82b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

objix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const
5858
},
5959

6060
clone(d, e) {
61-
return (this.size() > 10 && !e && d == -1) ? this.try(structuredClone, () => this.clone(d,1))
61+
return (!e && d == -1 && this.size() > 10) ? this.try(structuredClone, () => this.clone(d,1))
6262
: !this.is(O) ? this.valueOf()
6363
: [O,Array].has(this[C]) ? this.map(v => (d && v) ? v.clone(d-1) : v)
6464
: new this[C](this)

0 commit comments

Comments
 (0)