Useful methods to deal with arrays.
Gets a random element from a given array.
import { getRandomItem } from '@jsweb/utils/modules/array' const array = [1, 2, 3, 4, 5] const random = getRandomItem(array) // returns a random item from the array
There was an error while loading. Please reload this page.