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

Package detail

xurei-util

xurei23MIT1.4.1

Javascript Toolbox from xurei

isset

readme

xurei-util

Javascript Toolbox

wercker status

isset(variable)

Check that a variable is defined and not null.

lsDir(dir, recursive = true)

List the content of a directory synchronously and returns each files as an array.

arrayToMap(array, keyFn(item), valueFn = (a) => a)

Convert an array to a map using the provided keyFn(item) and valueFn(item) functions.

arrayMin & arrayMax(array, compareFn = (a,b) => a-b)

Returns the minimal/maximal item in an array, according to the provided compareFn