‘fast-copy’ is a deep object copier

‘fast-copy’ is a deep object copier
Average rating: 0
(0 votes)

‘fast-copy’ is a deep object copier that is useful for creating copies of simple, complex, circular, and special objects starting from small number and ending with custom constructors, React components and etc. As we love to explore new tools, today we’ll share ‘fast-copy’ with you.

Under the hood, fast-copy uses instanceof to determine object types, which can cause false negatives when used in combination with iframe-based objects. To handle this edge case, you can pass the optional second parameter of realmto the copy method, which identifies which realm the object comes from and will use that realm to drive both comparisons and constructors for the copies.

Circular objects are supported out of the box

Find other supported object types on Github.

Find more of interesting open source repositories to use in your development in our Rails and JavaScript digests.

Rate this article, if you like it

Thanks! You’ve rated this material!

Got a project? Let's discuss it!

*By submitting this form you agree with our Privacy Policy.

Mailing & Legal Address

Syndicode Inc. 340 S Lemon Ave #3299, Walnut CA, 91789, USA

Visiting & Headquarters address
Kyiv Sofiivska 1/2a, 01001, Kyiv, Ukraine
Dnipro Hlinky 2, of. 1003, 49000, Dnipro, Ukraine
Email info@syndicode.com
Phone (+1) 9035021111