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 github.com/calebmsword/parsec/

and tell me how cool I am!!!!!!!!!

@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

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.