Lines Matching defs:result

26   /** `Object#toString` result references. */
214 result = params || [];
218 result = params = phantom.args || require('system').args;
220 var last = result[result.length - 1];
221 result = (result.length > min && !/test(?:\.js)?$/.test(last)) ? last : '../lodash.js';
225 result = require('fs').realpathSync(result);
229 result = require.resolve(result);
232 return result;
350 var result = {
356 result.ListCache = stack.__data__.constructor;
357 result.Stack = stack.constructor;
359 return result;
437 result = wrapper.__wrapped__;
440 var args = [result],
444 result = action.func.apply(action.thisArg, args);
446 return result;
458 var result = require(id);
459 return 'default' in result ? result['default'] : result;
489 * Skips a given number of tests with a passing result.
530 var result = lodashStable.has(this, 'toString') ? this.toString() : fnToString.call(this);
532 return result;
1519 var array = lodashStable.transform(values, function(result, value) {
1520 result[value] = 1;
1660 QUnit.test('should return the result of `func`', function(assert) {
1783 var result = [this];
1784 push.apply(result, arguments);
1785 return result;
2347 var actual = lodashStable.reduce(funcs, function(result, func) {
2348 return func(result);
3019 var objects = lodashStable.transform(_, function(result, value, key) {
3024 result.push(value);
3032 result = func(object);
3034 return result !== object && ((result instanceof Ctor) || !(new Ctor instanceof Ctor));
3593 assert.ok(lodashStable.every(results, function(result) {
3594 return result === object;
3605 result = constant();
3607 return (result === value) || (result !== result && value !== value);
4220 QUnit.test('subsequent debounced calls return the last `func` result', function(assert) {
4305 QUnit.test('subsequent leading debounced calls return the last `func` result', function(assert) {
6110 var result = isIncludes ? false : undefined;
6111 return [result, result, result];
7172 var result = false;
7173 func(object, function() { result = true; }, 0);
7174 return result;
7544 var result = _[methodName]({}, source);
7545 return result instanceof Array;
12243 var result = [this.a];
12244 push.apply(result, arguments);
12245 return result;
12296 return function(result, object) {
12297 return result + object.a;
12767 return function(result, object) {
12768 result.sum += object.a;
13039 var result = func(value).sort();
13041 return result;
13055 var result = func(value).sort();
13057 return result;
13143 var result = index ? func(value) : func();
13145 return result;
13696 var result = index ? _.mapValues(object, value) : _.mapValues(object);
13697 return [lodashStable.isEqual(result, object), result === object];
14677 var result = new ImmutableCache;
14678 result.__data__ = this.__data__.concat({ 'key': key, 'value': value });
14679 return result;
16174 QUnit.test('should create a function that negates the result of `func`', function(assert) {
16183 QUnit.test('should create a function that negates the result of `func`', function(assert) {
17504 var result = [this.a];
17505 push.apply(result, arguments);
17506 return result;
17614 var result = [this];
17615 push.apply(result, arguments);
17616 return result;
18415 var array = lodashStable.transform(values, function(result, value) {
18416 result[value] = 1;
18502 var result = _.random(min, max);
18503 return result >= min && result <= max;
18514 var result = _.random(max);
18515 return result >= min && result <= max;
18540 var result = _.random(min, max);
18541 return result >= min && result <= max;
18592 var actual = lodashStable.map(randoms, function(result, index) {
18593 return result >= 0 && result <= array[index] && (result % 1) == 0;
19318 QUnit.module('lodash.result');
19326 assert.strictEqual(_.result(object, 'b'), 'b');
19332 var actual = _.result(object, 'c', object.b);
19342 assert.strictEqual(_.result(value, path), 'b');
19352 assert.strictEqual(_.result(value, path), 1);
19359 QUnit.module('lodash.get and lodash.result');
19361 lodashStable.each(['get', 'result'], function(methodName) {
19954 var actual = lodashStable.transform(empties, function(result, value) {
19956 result.push(_.sample(value));
20040 var actual = lodashStable.transform(empties, function(result, value) {
20042 result.push(_.sampleSize(value, 1));
20766 var result = [object.a, object.b];
20767 result.toString = function() { return String(this[0]); };
20768 return result;
21383 var result = index ? func(undefined, value) : func(value);
21384 return [result, 1 / result];
22727 QUnit.test('subsequent calls should return the result of the first call', function(assert) {
23482 var result = func(value);
23483 return [result, 1 / result];
24007 QUnit.test('should return the `toString` result of the wrapped value', function(assert) {
24038 var iteratee = function(result, value, key) {
24039 result[key] = square(value);
24048 var actual = lodashStable.map(results, function(result) {
24049 return result instanceof Foo;
24093 return _.transform(value, function(result, value) {
24094 result.push(square(value));
24104 return _.transform(value, function(result, value, key) {
24105 result[key] = square(value);
24116 assert.ok(lodashStable.every(actual, function(result) {
24117 return result === accumulator;
24127 var actual = _.transform(Array(1), function(result, value, index) {
24128 result[index] = String(value);
24218 result = _.transform(object);
24220 if (result === object) {
24224 return result instanceof Array;
24226 return result instanceof Ctor || !(new Ctor instanceof Ctor);
25884 QUnit.test('should execute the chained sequence and returns the wrapped result', function(assert) {
25958 QUnit.test('should use `_.toArray` to generate the iterable result ' + chainType, function(assert) {
26106 var result = index ? _(value).pop() : _().pop();
26107 return result === undefined;
26148 var result = index ? _(value).push(1).value() : _().push(1).value();
26149 return lodashStable.eq(result, value);
26194 var result = index ? _(value).shift() : _().shift();
26195 return result === undefined;
26236 var result = index ? _(value).sort().value() : _().sort().value();
26237 return lodashStable.eq(result, value);
26282 var result = index ? _(value).splice(0, 1).value() : _().splice(0, 1).value();
26283 return lodashStable.isEqual(result, []);
26324 var result = index ? _(value).unshift(1).value() : _().unshift(1).value();
26325 return lodashStable.eq(result, value);
26359 QUnit.test('should return the `valueOf` result of the wrapped value', function(assert) {