A collection of tested, reusable JS utilities and snippets.
npm install usfl --save
// individual module
import randomChoice from 'usfl/array/random-choice';
const chosen = randomChoice([1, 2, 3]);
// group
import array from 'usfl/array';
const chosen = array.randomChoice([1, 2, 3]);
// everything
import usfl from 'usfl';
const chosen = usfl.array.randomChoice([1, 2, 3]);
To install dependencies:
$ npm i
To run tests:
$ npm i -g karma-cli
$ karma start