Objects
- array :
object
- function :
object
- html :
object
- object :
object
- string :
object
- stylesheet :
object
Kind: global namespace
array.chunkedForEach(ar, fn, chunkSize) β Promise
Splits an array into chunks and breaks the execution queue to ensure reactivity.
Kind: static method of array
array.ensureArray(val)
Kind: static method of array
array.module.exports(ar) β *
Kind: static method of array
array.module.exports(ar) β Array
Returns all values of an array, which are not undefined.
Kind: static method of array
array.head(ar) β *
Kind: static method of array
array.tail(ar) β T
Kind: static method of array
array.toArray(arraylike)
Kind: static method of array
array.module.exports(ar)
Kind: static method of array
Kind: global namespace
function.enqueueWithResults β
Returns a function which executes promises one after another. The resulting function
returns a promise, which gets filled with an array of the results of the single promises.
Kind: static constant of function
Returns: function which executes the promises
| promiseGenerators | an array of functions which return a promise |
function.argsToArray(fn) β function
Kind: static method of function
function.checkTypes()
Kind: static method of function
function.combine() : function
Kind: static method of function
function.curry(fn) β curried
Kind: static method of function
function.module.exports(fn, timeout) β function
Creates a function which debounces with the given timeout and resets the timer
on every function call.
The returned debounced function has a function property abort() which aborts the timer.
Kind: static method of function
function.enqueue(promiseGenerators) β
returns a function which executes promises one after another
Kind: static method of function
Returns: function which executes the promises
| promiseGenerators | an array of functions which return a promise |
function.indentity(arg)
Kind: static method of function
function.measureTime(label, fn)
Takes a function and logs the time it takes on the console.
Kind: static method of function
function.memoize(fn, [timeout]) β function
Caches a function result for a specified time.
Kind: static method of function
| fn | function | the function of which the result should be cached |
| [timeout] | number | the time in ms which tells the time after which the results should be deleted from the cache |
function.module.exports()
Kind: static method of function
function.promisify(fn, context)
Kind: static method of function
Kind: global namespace
html.createLinkTag(filename, mediaQuery) β string
Kind: static method of html
Kind: global namespace
object.defaults(obj, values) β Object
Populates an object with default values.
Kind: static method of object
Returns: Object - a new object with the default values and the object values
| obj | Object | the object to populate the values on |
| values | Object | the default values to populate on the target object |
Creates a function which extracts some properties out of an object.
Kind: static method of object
object.filter(obj, pred) β *
Kind: static method of object
object.fromArray(array, key, keep) β *
Receives an array of objects and extracts an object with the given key as index. The key
must be a property of the array items. If the property is not found on the item, the item
is omitted.
Kind: static method of object
| array | Array.<Object> | |
| key | string | |
| keep | boolean | should the extracted prop be kept in the result object |
object.merge(targetObject, objects) β Object
Merges too objects deeply.
Kind: static method of object
| targetObject | Object |
| objects | Array.<Object> |
object.prop(prop) β function
Creates a function which returns a property of a passed object.
Kind: static method of object
Returns: function - function to return a property from a passed object
| prop | string | the property to return from the passed object |
object.removeProp(object)
Kind: static method of object
Kind: global namespace
string.append(str, append)
Kind: static method of string
string.ciCompare(val1, val2)
Kind: static method of string
string.toBool(val)
Kind: static method of string
stylesheet : object
Kind: global namespace
stylesheet.createStylesheetAst(rules) β Object
Kind: static method of stylesheet
stylesheet.getRules(css)
Kind: static method of stylesheet
stylesheet.isRuleType(type)
Kind: static method of stylesheet