var items = ['hi', 'hello', 'uzi'];
var item = 'uzi';//change item here to unique item only then it will push
if(items.indexOf(item) === -1) {
items.push(item);
console.log(items);
}
if(this.items.indexOf(item) === -1) {
this.items.push(item);
console.log(this.items);
}
const arr = Array.from({length: 5}, v => Math.floor(Math.random() * 100));
console.log(arr) // Array with random numbers of length 5