public
Last active

  • Download Gist
clone.js
JavaScript
1 2 3 4 5 6
function clone(o) {
return Object.create(
Object.getPrototypeOf(o),
Object.getOwnPropertyDescriptors(o)
);
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.