clone-js-object it is only for logic thinking, for real usage you can just use var anything:any; var copiedValue:any=JSON.parse(JSON.stringify(anything));