I have a simple object (or hash) in Javascript:
var settings = { link: \'http://example.com\', photo: \'http://photos.com/me.jpg\' };
I nee
My 2 cents:
function clone(hash) { var json = JSON.stringify(hash); var object = JSON.parse(json); return object; }
It may not be the most optimized option but it can be handy for some scenarios.