-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
QuestionAn issue which isn't directly actionable in codeAn issue which isn't directly actionable in code
Description
I have documented the question more on Stack Overflow (http://stackoverflow.com/questions/28150967/typescript-cloning-object)
Is there a way to clone an object in typescript? Currently I'm using the following hack
var cloneObj = new this.constructor();
but typescript raises the following error : error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
QuestionAn issue which isn't directly actionable in codeAn issue which isn't directly actionable in code