Logo

OmniClone

An isomorphic, configurable and fool proof javascript utility for objects deep cloning.

First official release of omniclone, the fully configurable function for deep cloning objects in javascript. It handles correctly: the invocation of constructors, the copy of the constructor and [[Prototype]], circular references, normal objects, custom objects, String, Boolean, Number, Error, Promise, Array and RegExp objects. It does his best even with Proxies. It also allows the copy of non-enumerables props, getters & setters, symbols.