I want to push a document with a name in a array
this is the expected output
[ light1 : {value: true } , light2 : { value : false}]
this is what I am trying
let value1 = {value : false}
LightName = Light1 ;
this.lightArray.push(
LightName : value1
);
let value1 = {value : false}
LightName = Light2 ;
this.lightArray.push(
LightName : value1
);
console.log(lightArray);