let obj = new obj() Object.keys(obj).forEach(field => obj[field] = 'value'); // fill all fields of obj with 'value'