jeudi 11 octobre 2018

Random value between two possibilities TypeScript

How can one assign to a an object which has a boolean property random values of true or false?

items: any[];

items.forEach( (item) => {
   item.randomBooleanProperty = ...; //true of false
});




Aucun commentaire:

Enregistrer un commentaire