Answers for "fill all field of object in js"

1

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'
Posted by: Guest on October-25-2021

Code answers related to "fill all field of object in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language