Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add key vakue to front of object

let obj = {'b': 2, 'c': 3};
Object.assign({a: 1}, obj);

// Object {a: 1, b: 2, c: 3}
 
PREVIOUS NEXT
Tagged: #add #key #vakue #front #object
ADD COMMENT
Topic
Name
7+9 =