clean-tostring
Clean function `toString` from code coverage mess. It can't be ideal, but it's useful in testing process.
Clean function `toString` from code coverage mess. It can't be ideal, but it's useful in testing process.
Bind context to a function and preserves her name. Can be used to change name of a function. The toString also works correctly.
Compose your control flow with absolute elegance. Support async/await, callbacks, thunks, generators, promises, observables, child processes and streams. Can power applications that need to have plugins. Useful for creating task, test and bench runners.
Bind context (optional) and multiple arguments to function.
Buffers calls to a function until ready
Use glob patterns to load an array of requireable files or npm modules - like plugins or middleware, optionally passing a config object to each module.
Function wrapping utility.
Acts like `co@4` and also is drop-in replacement for it (pass 100% of the tests). Built on top of `merz`, actually thanks to `always-done`. But accept everything, not only generators - sync functions, async functions, callbacks and more. Flow-control for
Trigger observ/watch or normal listening via a single interface
Parse function to object with same key names as arguments names and values that you pass in same order.
Wrap a function to be able to call it with promises as arguments, i.e. use promises as if they where non-promise values
Set of methods allowing simplify work with promises in cycle such as: forEach, map, find, filter, reduce, while, transform. Besides there are methods for comfortable work with promises or asynchronous operations - all, retry, timeout.
Smarter binding of function with some context. It uses .apply instead of .bind, with reason.
Check if given function is ES2017 asynchronous function or not
Basic iterator for [async][] library that handles async and synchronous functions, also emits `beforeEach`, `afterEach` and `error` events. Using [async-simple-iterator][] and used in [async-control][].
Making simple iterator for [async][] lib that adds beforeEach, afterEach, error hooks and support for settling. It also emits `beforeEach`, `afterEach` and `error` events.
Filter and flattenify array to have only function values. Much like `arr-filter-function` package, but with flatten.
Fast filter array to have only function values. But also allow you to give iterator function which will be called on each element of the array that is function - much like array.map functionallity. Useful when you want to filter, but also want to map in s
Create callback api from synchronous function. Same as `make-callback`, but won't handle generators and if async function is given returns it.
辅助,补充underscore(工具函数,类扩展),兼容IE8+