1.0.0
π Get a random item from an array
Repository
Current version released
3 years ago
random_item
Get a random item from an array
Usage
import randomItem, {
randomMultipleItems,
} from "https://deno.land/x/random_item/mod.ts";
randomItem(["π΄", "π¦", "π"]);
//=> 'π¦'
randomMultipleItems(["π΄", "π¦", "π"], 2);
//=> ['π', 'π¦']
License
This project is licensed under the MIT License.