shallow-clone is a simple method to shallow clone object, arrays and class without class losing it "class" status.
shallow-clone
MIT Licensed.