Lines Matching refs:func

67   var optimizeCb = function(func, context, argCount) {  argument
68 if (context === void 0) return func;
71 return func.call(context, value);
76 return func.call(context, value, index, collection);
79 return func.call(context, accumulator, value, index, collection);
83 return func.apply(context, arguments);
109 var restArgs = function(func, startIndex) { argument
110 startIndex = startIndex == null ? func.length - 1 : +startIndex;
118 case 0: return func.call(this, rest);
119 case 1: return func.call(this, arguments[0], rest);
120 case 2: return func.call(this, arguments[0], arguments[1], rest);
127 return func.apply(this, args);
286 var func = isFunc ? method : value[method];
287 return func == null ? func : func.apply(value, args);
740 _.bind = restArgs(function(func, context, args) { argument
741 if (!_.isFunction(func)) throw new TypeError('Bind must be called on a function');
743 return executeBound(func, bound, context, this, args.concat(callArgs));
752 _.partial = restArgs(function(func, boundArgs) { argument
761 return executeBound(func, bound, this, this, args);
782 _.memoize = function(func, hasher) { argument
786 if (!_.has(cache, address)) cache[address] = func.apply(this, arguments);
795 _.delay = restArgs(function(func, wait, args) { argument
797 return func.apply(null, args);
810 _.throttle = function(func, wait, options) { argument
818 result = func.apply(context, args);
834 result = func.apply(context, args);
855 _.debounce = function(func, wait, immediate) { argument
860 if (args) result = func.apply(context, args);
868 if (callNow) result = func.apply(this, args);
887 _.wrap = function(func, wrapper) { argument
888 return _.partial(wrapper, func);
912 _.after = function(times, func) { argument
915 return func.apply(this, arguments);
921 _.before = function(times, func) { argument
925 memo = func.apply(this, arguments);
927 if (times <= 1) func = null;
1569 var func = _[name] = obj[name];
1573 return chainResult(this, func.apply(_, args));