Lines Matching refs:obj

87     var obj = {first: 'Moe', second: 'Larry', third: 'Curly'};  class in AnonymousFunction235956210600
88 assert.deepEqual(_.keys(_.invert(obj)), ['Moe', 'Larry', 'Curly'], 'can invert an object');
89 assert.deepEqual(_.invert(_.invert(obj)), obj, 'two inverts gets you back where you started');
91 obj = {length: 3}; class in AnonymousFunction235956210600
92 assert.equal(_.invert(obj)['3'], 'length', 'can invert an object with "length"');
96 var obj = {a: 'dash', b: _.map, c: /yo/, d: _.reduce}; class in AnonymousFunction235956210700
97 …assert.deepEqual(['b', 'd'], _.functions(obj), 'can grab the function names of any passed-in objec…
209 _.pick(data, function(value, key, obj) { argument
210 assert.equal(obj, data, 'passes same object as third parameter of iteratee');
589 var obj = {one: 1}; class in AnonymousFunction235956211b00
590 delete obj.one;
591 assert.ok(_.isEmpty(obj), 'deleting all the keys from an object empties it');
640 var obj = new String('I am a string object');
646 assert.ok(_.isString(obj), 'so are String objects');
702 var obj = new Map();
703 obj.set(keyString, 'value');
704 assert.ok(_.isMap(obj), 'but a map is');
725 var keyObj = {}, obj = new WeakMap();
726 obj.set(keyObj, 'value');
727 assert.ok(_.isWeakMap(obj), 'but a weakmap is');
748 var obj = new Set();
749 obj.add(1).add('string').add(false).add({});
750 assert.ok(_.isSet(obj), 'but a set is');
772 var obj = new WeakSet();
773 obj.add({x: 1}, {y: 'string'}).add({y: 'string'}).add({z: [1, 2, 3]});
774 assert.ok(_.isWeakSet(obj), 'but a weakset is');
828 var obj = new Number(5);
829 assert.ok(_.isFinite(obj), 'Number instances can be finite');
882 var interceptor = function(obj) { intercepted = obj; }; argument
897 var obj = {foo: 'bar', func: function(){}}; class in AnonymousFunction235956213600
898 assert.ok(_.has(obj, 'foo'), 'has() checks that the object has a property.');
899 assert.notOk(_.has(obj, 'baz'), "has() returns false if the object doesn't have the property.");
900 assert.ok(_.has(obj, 'func'), 'has() works for functions too.');
901 obj.hasOwnProperty = null;
902 assert.ok(_.has(obj, 'foo'), 'has() works even when the hasOwnProperty method is deleted.');
904 child.prototype = obj;
1018 assert.equal(_.findKey(objects, function(obj) { argument
1019 return obj.a === 0;
1022 assert.equal(_.findKey(objects, function(obj) { argument
1023 return obj.b * obj.a === 4;
1028 assert.equal(_.findKey(objects, function(obj) { argument
1029 return obj.b * obj.a === 5;
1032 assert.strictEqual(_.findKey([1, 2, 3, 4, 5, 6], function(obj) { argument
1033 return obj === 3;
1040 _.findKey({a: {a: 1}}, function(a, key, obj) { argument
1042 assert.deepEqual(obj, {a: {a: 1}});
1053 var obj = {a: 1, b: 2}; class in AnonymousFunction235956214600
1060 assert.deepEqual(_.mapObject(obj, function(val) {
1070 assert.deepEqual(_.mapObject(obj, function(val, key, o) {
1078 assert.deepEqual(_.mapObject(obj, function(val) {