![]() |
VOOZH | about |
Underscore.js_.clone() function is used to create a shallow copy of the given object. The nested objects or arrays will be copied using reference, not duplicated.
_.clone( object );It returns the shallow copy of the given object.
Example 1: This example shows the use of the underscore.js _.clone() function.
Output:
👁 ImageExample 2: This example shows the use of the underscore.js _.clone() function.