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 9260cd0 commit d4f82b5Copy full SHA for d4f82b5
objix.js
@@ -58,7 +58,7 @@ const
58
},
59
60
clone(d, e) {
61
- return (this.size() > 10 && !e && d == -1) ? this.try(structuredClone, () => this.clone(d,1))
+ return (!e && d == -1 && this.size() > 10) ? this.try(structuredClone, () => this.clone(d,1))
62
: !this.is(O) ? this.valueOf()
63
: [O,Array].has(this[C]) ? this.map(v => (d && v) ? v.clone(d-1) : v)
64
: new this[C](this)
0 commit comments