Lines Matching refs:_

38   var _ = root._ || require('../lodash.js');  variable
44 return baseConvert(_, name, func, options);
55 : baseConvert(_.runInContext(), options)[name];
68 ? (fp = _.noConflict(), _ = root._, fp)
69 : convert(_.runInContext());
102 remove = convert('remove', _.remove),
113 remove = convert('remove', _.remove, allFalseOptions);
129 lodash = convert({ 'remove': _.remove }),
145 lodash = convert({ 'remove': _.remove }, allFalseOptions),
161 lodash = convert(_.runInContext(), allFalseOptions),
173 runInContext = convert('runInContext', _.runInContext, allFalseOptions),
186 value = _.clone(array),
187 remove = convert('remove', _.remove, { 'cap': false }),
193 remove = convert('remove', _.remove, { 'curry': false });
198 var trim = convert('trim', _.trim, { 'fixed': false });
201 value = _.clone(array);
202 remove = convert('remove', _.remove, { 'immutable': false });
208 value = _.clone(array);
209 remove = convert('remove', _.remove, { 'rearg': false });
219 var iteratee = convert('iteratee', _.iteratee, { 'cap': false });
231 var add = convert('add', _.add, { 'rearg': true });
240 var lodash = convert({ 'add': _.add });
270 actual = all([0])(_.identity);
290 _.each(['fp.convert', 'method.convert'], function(methodName) {
328 var methodNames = _.filter(_.functions(fp), function(methodName) {
338 _.times(4, function(index) {
341 var methodNames = _.filter(mapping.aryMethod[aryCap], function(methodName) {
342 var key = _.get(mapping.remap, methodName, methodName),
343 arity = _[key].length;
361 var actual = _.transform(mapping.aliasToReal, function(result, realName, alias) {
365 assert.deepEqual(_.reject(actual, 1), []);
383 expected = _.map(mapping.aryMethod[1], _.constant(true));
385 var actual = _.map(mapping.aryMethod[1], function(methodName) {
386 var arg = _.includes(funcMethods, methodName) ? _.noop : 1,
387 result = _.attempt(function() { return fp[methodName](arg); });
389 if (_.includes(exceptions, methodName)
411 var exceptions = _.without(funcMethods.concat('matchesProperty'), 'delay'),
412 expected = _.map(mapping.aryMethod[2], _.constant(true));
414 var actual = _.map(mapping.aryMethod[2], function(methodName) {
415 …var args = _.includes(funcMethods, methodName) ? [methodName == 'curryN' ? 1 : _.noop, _.noop] : […
416 result = _.attempt(function() { return fp[methodName](args[0])(args[1]); });
418 if (_.includes(exceptions, methodName)
439 var expected = _.map(mapping.aryMethod[3], _.constant(true));
441 var actual = _.map(mapping.aryMethod[3], function(methodName) {
442 var args = _.includes(funcMethods, methodName) ? [_.noop, 0, 1] : [0, 1, []],
443 result = _.attempt(function() { return fp[methodName](args[0])(args[1])(args[2]); });
486 actual = fp.uniqBy(_.identity, other);
511 isFIFO = _.keys(object)[0] == 'a',
512 map = convert('map', _.map),
513 reduce = convert('reduce', _.reduce);
560 var map1 = convert('map', _.map),
561 filter1 = convert('filter', _.filter),
562 take1 = convert('take', _.take);
623 _.each([[], fp.__], function(ph) {
646 _.each(methodNames, function(methodName) {
652 assert.ok(_.isObject(func.placeholder));
667 value = _.cloneDeep(object),
670 assert.ok(_.isObject(actual.a.b), 'fp.set');
671 assert.ok(_.isNumber(actual.a.b), 'fp.set');
676 value = _.cloneDeep(object);
681 value = _.cloneDeep(object);
687 value = _.cloneDeep(object);
693 value = _.cloneDeep(object);
694 actual = fp.updateWith(Object)('[0][1]')(_.constant('a'))(value);
705 _.each(['add', 'subtract'], function(methodName) {
720 _.each(['assign', 'assignIn', 'defaults', 'defaultsDeep', 'merge'], function(methodName) {
734_.each(['assignAll', 'assignInAll', 'defaultsAll', 'defaultsDeepAll', 'mergeAll'], function(method…
748 _.each(['assignWith', 'assignInWith', 'extendWith'], function(methodName) {
757 args || (args = _.map(arguments, _.cloneDeep));
764_.each(['assignAllWith', 'assignInAllWith', 'extendAllWith', 'mergeAllWith'], function(methodName)…
771 actual = func(_.noop)(objects);
819 castArray = convert('castArray', _.castArray),
835 _.each(['curry', 'curryRight'], function(methodName) {
841 assert.raises(function() { func(1, _.noop); }, TypeError);
849 _.each(['curryN', 'curryRightN'], function(methodName) {
928 _.each(['divide', 'multiply'], function(methodName) {
951 extend = convert('extend', _.extend),
986 _.each(['findFrom', 'findIndexFrom', 'findLastFrom', 'findLastIndexFrom'], function(methodName) {
1044 _.each(['findIndexFrom', 'indexOfFrom'], function(methodName) {
1046 resolve = methodName == 'findIndexFrom' ? fp.eq : _.identity;
1062 _.each(['findLastIndexFrom', 'lastIndexOfFrom'], function(methodName) {
1064 resolve = methodName == 'findLastIndexFrom' ? fp.eq : _.identity;
1101 _.each(['flow', 'flowRight'], function(methodName) {
1126 _.times(2, function(index) {
1149_.each(['forEach', 'forEachRight', 'forIn', 'forInRight', 'forOwn', 'forOwnRight'], function(metho…
1190 _.each(['gt', 'gte'], function(methodName) {
1319 args = _.map(arguments, _.cloneDeep);
1323 args[5] = _.omitBy(args[5], _.isFunction);
1324 args[5].__data__ = _.omitBy(args[5].__data__, _.isFunction);
1344 args || (args = _.map(arguments, _.cloneDeep));
1347 args[5] = _.omitBy(args[5], _.isFunction);
1348 args[5].__data__ = _.omitBy(args[5].__data__, _.isFunction);
1369 var iteratee = convert('iteratee', _.iteratee),
1380 _.each(['lt', 'lte'], function(methodName) {
1412 _.each(['maxBy', 'minBy'], function(methodName) {
1453 args || (args = _.map(arguments, _.cloneDeep));
1456 args[5] = _.omitBy(args[5], _.isFunction);
1457 args[5].__data__ = _.omitBy(args[5].__data__, _.isFunction);
1466 actual = fp.mergeWith(_.noop, objects[0], objects[1]);
1487 args || (args = _.map(arguments, _.cloneDeep));
1490 args[5] = _.omitBy(args[5], _.isFunction);
1491 args[5].__data__ = _.omitBy(args[5].__data__, _.isFunction);
1502 var source = { 'a': _.noop };
1520 Foo.prototype.a = _.noop;
1548 var props = _.without(_.keys(_), '_');
1550 _.times(2, function(index) {
1553 assert.ok(_.every(props, function(key) {
1557 _.each(props, function(key) {
1568 var object = { 'mixin': convert('mixin', _.mixin) };
1606 _.each([fp.over, convert('over', _.over)], function(func) {
1617 _.each(['omitBy', 'pickBy'], function(methodName) {
1637 _.each(['padChars', 'padCharsStart', 'padCharsEnd'], function(methodName) {
1657 _.each(['partial', 'partialRight'], function(methodName) {
1677 par = convert(methodName, _[methodName]),
1770 assert.ok(_.some(array, function() {
1781 _.each(['range', 'rangeRight'], function(methodName) {
1796 _.each(['rangeStep', 'rangeStepRight'], function(methodName) {
1835 _.each(['reduce', 'reduceRight'], function(methodName) {
1856 isFIFO = _.keys(object)[0] == 'a';
1932 var runInContext = convert('runInContext', _.runInContext);
1964 args || (args = _.map(arguments, _.cloneDeep));
2001 _.each(['trimChars', 'trimCharsStart', 'trimCharsEnd'], function(methodName, index) {
2084 actual = fp.uniqBy(_.property('a'))(objects);
2135 var actual = fp.update('a.b')(_.identity)({ 'a': { 'b': 1 } });
2142 var object = { 'a': { 'b': _.constant(true) } },
2143 actual = fp.update('a.b')(_.identity)(object);
2169 args || (args = _.map(arguments, _.cloneDeep));
2170 })('b.c')(_.constant(2))({ 'a': 1 });
2179 actual = fp.updateWith(Object)('d.e')(_.constant(4))(object);
2244 _.each(['differenceWith', 'intersectionWith', 'xorWith'], function(methodName) {