simple-swizzle
Swizzle your function arguments; pass in mixed arrays/values and get a clean array
Usage
var swizzle = ; { var args = ; // ... return args;} ; // [1, 2, 3, 4]; // [1, 2, 3, 4]; // [1, 2, 3, 4]
Functions can also be wrapped to automatically swizzle arguments and be passed the resulting array.
var swizzle = ; var swizzledFn = swizzle; ; // [1, 2, 3, 4]; // [1, 2, 3, 4]; // [1, 2, 3, 4]
License
Licensed under the MIT License. You can find a copy of it in LICENSE.