Lines Matching refs:constant
354 * <a href="#_constantvalue">`_.constant`</a>
7507 this.a = _.constant('a');
7508 this.b = _.constant('b');
7511 Foo.prototype.c = _.constant('c');
7540 this.a = _.constant('a');
7541 this.b = _.constant('b');
7544 Foo.prototype.c = _.constant('c');
8131 var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
8142 _.result(object, 'a[0].b.c3', _.constant('default'));
8447 _.updateWith(object, '[0][1]', _.constant('a'), Object);
8588 `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
10167 [_.matches({ 'a': 1 }), _.constant('matches A')],
10168 [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
10169 [_.stubTrue, _.constant('no match')]
10223 <h3 id="_constantvalue"><code>_.constant(value)</code></h3>
10224 …15392 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.constant "See the npm pack…
10235 *(Function)*: Returns the new constant function.
10239 var objects = _.times(2, _.constant({ 'a': 1 }));
10525 { 'a': { 'b': _.constant(2) } },
10526 { 'a': { 'b': _.constant(1) } }
10560 var array = _.times(3, _.constant),
10970 _.mixin({ 'foo': _.constant('foo') });
10973 lodash.mixin({ 'bar': lodash.constant('bar') });
11135 _.times(4, _.constant(0));