Lines Matching refs:func

16 function baseArity(func, n) {  argument
18 ? function(a, b) { return func.apply(undefined, arguments); }
19 : function(a) { return func.apply(undefined, arguments); };
31 function baseAry(func, n) { argument
33 ? function(a, b) { return func(a, b); }
34 : function(a) { return func(a); };
61 function createCloner(func) { argument
63 return func({}, object);
76 function flatSpread(func, start) { argument
94 return func.apply(this, otherArgs);
107 function wrapImmutable(func, cloner) { argument
118 func.apply(undefined, args);
138 function baseConvert(util, name, func, options) { argument
143 options = func;
144 func = name;
147 if (func == null) {
160 var defaultHolder = isLib ? func : fallbackHolder,
164 pristine = isLib ? func.runInContext() : undefined;
166 var helpers = isLib ? func : {
210 var func = arguments[0],
212 result = iteratee(func, arity),
224 var func = this;
225 if (!isFunction(func)) {
226 return mixin(func, Object(source));
231 pairs.push([key, func.prototype[key]]);
235 mixin(func, Object(source));
240 func.prototype[pair[0]] = value; class
242 delete func.prototype[pair[0]];
245 return func;
255 return function(func, indexes) { argument
257 return curry(rearg(func, indexes), arity);
277 function castCap(name, func) { argument
281 return iterateeRearg(func, indexes);
285 return iterateeAry(func, n);
288 return func;
300 function castCurry(name, func, n) { argument
302 ? curry(func, n)
303 : func;
315 function castFixed(name, func, n) { argument
320 return start === undefined ? ary(func, n) : flatSpread(func, start);
322 return func;
334 function castRearg(name, func, n) { argument
336 ? rearg(func, mapping.methodRearg[name] || mapping.aryRearg[n])
337 : func;
388 function createConverter(name, func) { argument
395 newFunc = isLib ? pristine[methodName] : func,
411 function iterateeAry(func, n) { argument
412 return overArg(func, function(func) { argument
413 return typeof func == 'function' ? baseAry(func, n) : func;
428 function iterateeRearg(func, indexes) { argument
429 return overArg(func, function(func) { argument
431 return baseArity(rearg(baseAry(func, n), indexes), n);
443 function overArg(func, transform) { argument
447 return func();
455 return func.apply(undefined, args);
468 function wrap(name, func, placeholder) { argument
471 wrapped = func,
475 wrapped = wrapper(func);
479 wrapped = wrapImmutable(func, cloneArray);
482 wrapped = wrapImmutable(func, createCloner(func));
485 wrapped = wrapImmutable(func, cloneByPath);
507 if (result == func) {
509 return func.apply(this, arguments);
512 result.convert = createConverter(realName, func);
513 result.placeholder = func.placeholder = placeholder;
521 return wrap(name, func, defaultHolder);
523 var _ = func;
529 var func = _[mapping.remap[key] || key];
530 if (func) {
531 pairs.push([key, wrap(key, func, _)]);
538 var func = _[key];
539 if (typeof func == 'function') {
546 func.convert = createConverter(key, func);
547 pairs.push([key, func]);