get-randomly
v1.0.0
Published
Function for get random items.
Downloads
40
Readme
get-randomly-js
Function for get randomly items for a iterator.
Installation
Via npm: npm i get-randomly
.
Usage
Simple example:
const getRandomly = require('get-randomly')
const arr = [true, 'foo', function(){}]
const randomItem = getRandomly(arr)
Test
For test this package execute: npm run test
.