Package Exports
- useware
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (useware) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
useware

Accept Arguments object or multiple arguments that can be any value, including deeply nested arrays. Flatten the arguments/values then filter them to be only functions.
Useful for.usemethods.
Install
npm i useware --save
npm testUsage
For more use-cases see the tests
var useware = require('useware')
function fixtureArguments () {
return useware(arguments)
}
function fixtureMultiple () {
return useware.apply(this, arguments)
}
function fn1 () {}
function fn2 () {}
function fn3 () {}
fixtureArguments(fn1, [1, [2, 3, fn2]], {foo: 'bar'}, [fn3, [4, 5]])
//=> [fn1, fn2, fn3]
fixtureMultiple([1, [2, [fn3, [4, 5]], fn2]], fn1, [6, [fn3, 7, 'a']])
//=> [fn3, fn2, fn1, fn3]Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
But before doing anything, please read the CONTRIBUTING.md guidelines.