4 lines
89 B
JavaScript
4 lines
89 B
JavaScript
export const pick = (list) => {
|
|
return list[Math.floor(Math.random() * list.length)]
|
|
}
|