Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

get-randomly

rich-97134MIT1.0.0

Function for get random items.

random, get, item

readme

get-randomly-js

npm npm

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.

License

MIT