Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js shallow copy

Object.assign({}, obj); // ES6 shallow copy
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #js #shallow #copy
ADD COMMENT
Topic
Name
4+5 =