↩︎

doamrn

Retrieve a random item from the arguments

const random = require('doamrn');

random(1, 2, 3, 'string', new Object(), null) // any one of them

Transpiled version

Environments which exclude node_modules from the transpiling pipeline should include the "browser" entry instead of "main". This exposes an ES5 commonjs module.

Also available for explicit import:

const doamrn = require('doamrn/dist');