first commit

This commit is contained in:
Owen LeJeune
2018-03-07 17:18:40 -05:00
commit dfa77bc52a
403 changed files with 52076 additions and 0 deletions

23
node_modules/component-bind/index.js generated vendored Normal file
View File

@@ -0,0 +1,23 @@
/**
* Slice reference.
*/
var slice = [].slice;
/**
* Bind `obj` to `fn`.
*
* @param {Object} obj
* @param {Function|String} fn or string
* @return {Function}
* @api public
*/
module.exports = function(obj, fn){
if ('string' == typeof fn) fn = obj[fn];
if ('function' != typeof fn) throw new Error('bind() requires a function');
var args = slice.call(arguments, 2);
return function(){
return fn.apply(obj, args.concat(slice.call(arguments)));
}
};