.copy() - DarthJDG/Mangler.js GitHub Wiki
Copies all items into a new mangler object and returns it.
.copy()Returns a reference to the new mangler object for chaining.
Items are not cloned, this method simply adds all items from the .items[ ] array to a new mangler object. If you need to make a deep copy of the objects, see .clone().
m = Mangler([4, 5, 6]);
c = m.copy().removeItem(5);
/*
m.items = [4, 5, 6]
c.items = [4, 6]
*/