Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private _onAddItemButtonClicked = (): void => {
const randomPerson = people[Math.floor(Math.random() * (people.length - 1))];
this._selectionList.addItems([randomPerson]);
};
private _onAddItemButtonClicked = (): void => {
const randomPerson = people[Math.floor(Math.random() * (people.length - 1))];
this._selectionList.addItems([randomPerson]);
};
private _onAddItemButtonClicked = (): void => {
const randomPerson = people[Math.floor(Math.random() * (people.length - 1))];
this._selectionList.addItems([randomPerson]);
};
private _onAddItemButtonClicked = (): void => {
const randomPerson = people[Math.floor(Math.random() * (people.length - 1))];
this._selectionList.addItems([randomPerson]);
};