Lines Matching refs:n

612 <h3 id="_droparray-n1"><code>_.drop(array, [n=1])</code></h3>
615 Creates a slice of `array` with `n` elements dropped from the beginning.
622 2. `[n=1]` *(number)*: The number of elements to drop.
647 <h3 id="_droprightarray-n1"><code>_.dropRight(array, [n=1])</code></h3>
650 Creates a slice of `array` with `n` elements dropped from the end.
657 2. `[n=1]` *(number)*: The number of elements to drop.
1281 <h3 id="_ntharray-n0"><code>_.nth(array, [n=0])</code></h3>
1284 Gets the element at index `n` of `array`. If `n` is negative, the nth
1292 2. `[n=0]` *(number)*: The index of the element to return.
1510 var evens = _.remove(array, function(n) {
1511 return n % 2 == 0;
1845 <h3 id="_takearray-n1"><code>_.take(array, [n=1])</code></h3>
1848 Creates a slice of `array` with `n` elements taken from the beginning.
1855 2. `[n=1]` *(number)*: The number of elements to take.
1880 <h3 id="_takerightarray-n1"><code>_.takeRight(array, [n=1])</code></h3>
1883 Creates a slice of `array` with `n` elements taken from the end.
1890 2. `[n=1]` *(number)*: The number of elements to take.
2694 _.findLast([1, 2, 3, 4], function(n) {
2695 return n % 2 == 1;
2724 function duplicate(n) {
2725 return [n, n];
2755 function duplicate(n) {
2756 return [[[n, n]]];
2787 function duplicate(n) {
2788 return [[[n, n]]];
3051 function square(n) {
3052 return n * n;
3193 _.reduce([1, 2], function(sum, n) {
3194 return sum + n;
3311 <h3 id="_samplesizecollection-n1"><code>_.sampleSize(collection, [n=1])</code></h3>
3314 Gets `n` random elements at unique keys from `collection` up to the
3322 2. `[n=1]` *(number)*: The number of elements to sample.
3520 <h3 id="_aftern-func"><code>_.after(n, func)</code></h3>
3524 `func` once it's called `n` or more times.
3530 1. `n` *(number)*: The number of calls before `func` is invoked.
3555 <h3 id="_aryfunc-nfunclength"><code>_.ary(func, [n=func.length])</code></h3>
3558 Creates a function that invokes `func`, with up to `n` arguments,
3566 2. `[n=func.length]` *(number)*: The arity cap.
3582 <h3 id="_beforen-func"><code>_.before(n, func)</code></h3>
3586 of the created function, while it's called less than `n` times. Subsequent
3593 1. `n` *(number)*: The number of calls at which `func` is no longer invoked.
4046 function isEven(n) {
4047 return n % 2 == 0;
4105 function doubled(n) {
4106 return n * 2;
4109 function square(n) {
4110 return n * n;
4669 _.conformsTo(object, { 'b': function(n) { return n > 1; } });
4672 _.conformsTo(object, { 'b': function(n) { return n > 2; } });
6535 var objects = [{ 'n': 1 }, { 'n': 2 }];
6537 _.maxBy(objects, function(o) { return o.n; });
6538 // => { 'n': 2 }
6541 _.maxBy(objects, 'n');
6542 // => { 'n': 2 }
6594 var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
6596 _.meanBy(objects, function(o) { return o.n; });
6600 _.meanBy(objects, 'n');
6657 var objects = [{ 'n': 1 }, { 'n': 2 }];
6659 _.minBy(objects, function(o) { return o.n; });
6660 // => { 'n': 1 }
6663 _.minBy(objects, 'n');
6664 // => { 'n': 1 }
6800 var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
6802 _.sumBy(objects, function(o) { return o.n; });
6806 _.sumBy(objects, 'n');
6854 Checks if `n` is between `start` and up to, but not including, `end`. If
8325 _.transform([2, 3, 4], function(result, n) {
8326 result.push(n *= n);
8327 return n % 2 == 0;
8406 _.update(object, 'a[0].b.c', function(n) { return n * n; });
8410 _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
8647 function square(n) {
8648 return n * n;
8952 function square(n) {
8953 return n * n;
9447 <h3 id="_repeatstring-n1"><code>_.repeat([string=''], [n=1])</code></h3>
9450 Repeats the given string `n` times.
9457 2. `[n=1]` *(number)*: The number of times to repeat the string.
9670 7. `[options.sourceURL='lodash.templateSources[n]']` *(string)*: The sourceURL of the compiled temp…
10214 _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
10302 function square(n) {
10303 return n * n;
10333 function square(n) {
10334 return n * n;
10664 <h3 id="_nthargn0"><code>_.nthArg([n=0])</code></h3>
10667 Creates a function that gets the argument at index `n`. If `n` is negative,
10674 1. `[n=0]` *(number)*: The index of the argument to return.
11114 <h3 id="_timesn-iteratee_identity"><code>_.times(n, [iteratee=_.identity])</code></h3>
11117 Invokes the iteratee `n` times, returning an array of the results of
11124 1. `n` *(number)*: The number of times to invoke `iteratee`.