1.4.1 • Published 7 years ago
xurei-util v1.4.1
xurei-util
Javascript Toolbox
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