Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

clone a list typescript

const myArray= [{ a: 'a', b: 'b' }, { a: 'c', b: 'd' }];
const myClonedArray = [];
myArray.forEach(val => myClonedArray.push(Object.assign({}, val)));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #clone #list #typescript
ADD COMMENT
Topic
Name
9+9 =