Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fill all field of object in js

let obj = new obj()

Object.keys(obj).forEach(field => obj[field] = 'value');
// fill all fields of obj with 'value'
 
PREVIOUS NEXT
Tagged: #fill #field #object #js
ADD COMMENT
Topic
Name
2+9 =