I hand-coded a deep copy algorithm in JavaScript! It doesn't ever blow up the call stack and it copies property descriptors!
Everyone look at https://github.com/calebmsword/parsec/blob/main/example/example-utils/clone-deep.js
and tell me how cool I am!!!!!!!!!
@Lady noted, thank you
@wallhackio if you want better type detection (not dependent on instanceof), most builtins have methods which will throw if not called on an instance and you can use those as a brand check
i think assuming that people haven't done weird things with inheritance is a fine limitation tho