npm.io
1.4.1 • Published 9 years ago

xurei-util

Licence
MIT
Version
1.4.1
Deps
0
Vulns
0
Weekly
0

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

Keywords