Lines Matching refs:array

353 	function fromArray (that, array) {
354 var length = checked(array.length) | 0
357 that[i] = array[i] & 255
363 function fromTypedArray (that, array) {
364 var length = checked(array.length) | 0
370 that[i] = array[i] & 255
375 function fromArrayBuffer (that, array) {
378 array.byteLength
379 that = Buffer._augment(new Uint8Array(array))
382 that = fromTypedArray(that, new Uint8Array(array))
387 function fromArrayLike (that, array) {
388 var length = checked(array.length) | 0
391 that[i] = array[i] & 255
399 var array
403 array = object.data
404 length = checked(array.length) | 0
409 that[i] = array[i] & 255
2679 function baseIndexOf(array, value, fromIndex) {
2681 return indexOfNaN(array, fromIndex);
2684 length = array.length;
2687 if (array[index] === value) {
2704 function baseSortBy(array, comparer) {
2705 var length = array.length;
2707 array.sort(comparer);
2709 array[length] = array[length].value;
2711 return array;
2861 function indexOfNaN(array, fromIndex, fromRight) {
2862 var length = array.length,
2866 var other = array[index];
2907 function replaceHolders(array, placeholder) {
2909 length = array.length,
2914 if (array[index] === placeholder) {
2915 array[index] = PLACEHOLDER;
2931 function sortedUniq(array, iteratee) {
2934 length = array.length,
2939 var value = array[index],
2940 computed = iteratee ? iteratee(value, index, array) : value;
3448 var array = this.wrapped.value();
3449 if (!isArray(array)) {
3450 return baseWrapperValue(array, this.actions);
3454 view = getView(0, array.length, this.views),
3471 value = array[index];
3476 computed = iteratee(value, index, array),
3629 function arrayCopy(source, array) {
3633 array || (array = Array(length));
3635 array[index] = source[index];
3637 return array;
3649 function arrayEach(array, iteratee) {
3651 length = array.length;
3654 if (iteratee(array[index], index, array) === false) {
3658 return array;
3670 function arrayEachRight(array, iteratee) {
3671 var length = array.length;
3674 if (iteratee(array[length], length, array) === false) {
3678 return array;
3691 function arrayEvery(array, predicate) {
3693 length = array.length;
3696 if (!predicate(array[index], index, array)) {
3712 function arrayFilter(array, predicate) {
3714 length = array.length,
3719 var value = array[index];
3720 if (predicate(value, index, array)) {
3736 function arrayMap(array, iteratee) {
3738 length = array.length,
3742 result[index] = iteratee(array[index], index, array);
3754 function arrayMax(array) {
3756 length = array.length,
3760 var value = array[index];
3775 function arrayMin(array) {
3777 length = array.length,
3781 var value = array[index];
3801 function arrayReduce(array, iteratee, accumulator, initFromArray) {
3803 length = array.length;
3806 accumulator = array[++index];
3809 accumulator = iteratee(accumulator, array[index], index, array);
3826 function arrayReduceRight(array, iteratee, accumulator, initFromArray) {
3827 var length = array.length;
3829 accumulator = array[--length];
3832 accumulator = iteratee(accumulator, array[length], length, array);
3847 function arraySome(array, predicate) {
3849 length = array.length;
3852 if (predicate(array[index], index, array)) {
4132 function baseDifference(array, values) {
4133 var length = array ? array.length : 0,
4152 var value = array[index];
4291 function baseFlatten(array, isDeep, isStrict, fromIndex) {
4293 length = array.length,
4298 var value = array[index];
4781 function basePullAt(array, indexes) {
4783 result = baseAt(array, indexes);
4790 splice.call(array, index, 1);
4854 function baseSlice(array, start, end) {
4856 length = array.length;
4871 result[index] = array[index + start];
4905 function baseUniq(array, iteratee) {
4908 length = array.length,
4923 var value = array[index],
4924 computed = iteratee ? iteratee(value, index, array) : value;
5009 function binaryIndex(array, value, retHighest) {
5011 high = array ? array.length : low;
5016 computed = array[mid];
5026 return binaryIndexBy(array, value, identity, retHighest);
5043 function binaryIndexBy(array, value, iteratee, retHighest) {
5047 high = array ? array.length : 0,
5053 computed = iteratee(array[mid]),
5309 array = words(deburr(string)),
5310 length = array.length,
5314 result = callback(result, array[index], index);
5593 function equalArrays(array, other, equalFunc, customizer, isWhere, stackA, stackB) {
5595 arrLength = array.length,
5604 var arrValue = array[index],
5838 function initCloneArray(array) {
5839 var length = array.length,
5840 result = new array.constructor(length);
5843 if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
5844 result.index = array.index;
5845 result.input = array.input;
6127 function reorder(array, indexes) {
6128 var arrLength = array.length,
6130 oldArray = arrayCopy(array);
6134 array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
6136 return array;
6283 function chunk(array, size, guard) {
6284 if (guard ? isIterateeCall(array, size, guard) : size == null) {
6290 length = array ? array.length : 0,
6295 result[++resIndex] = baseSlice(array, index, (index += size));
6314 function compact(array) {
6316 length = array ? array.length : 0,
6321 var value = array[index];
6387 function drop(array, n, guard) {
6388 var length = array ? array.length : 0;
6392 if (guard ? isIterateeCall(array, n, guard) : n == null) {
6395 return baseSlice(array, n < 0 ? 0 : n);
6423 function dropRight(array, n, guard) {
6424 var length = array ? array.length : 0;
6428 if (guard ? isIterateeCall(array, n, guard) : n == null) {
6432 return baseSlice(array, 0, n < 0 ? 0 : n);
6475 function dropRightWhile(array, predicate, thisArg) {
6476 var length = array ? array.length : 0;
6481 while (length-- && predicate(array[length], length, array)) {}
6482 return baseSlice(array, 0, length + 1);
6525 function dropWhile(array, predicate, thisArg) {
6526 var length = array ? array.length : 0;
6532 while (++index < length && predicate(array[index], index, array)) {}
6533 return baseSlice(array, index);
6575 function findIndex(array, predicate, thisArg) {
6577 length = array ? array.length : 0;
6581 if (predicate(array[index], index, array)) {
6627 function findLastIndex(array, predicate, thisArg) {
6628 var length = array ? array.length : 0;
6631 if (predicate(array[length], length, array)) {
6655 function first(array) {
6656 return array ? array[0] : undefined;
6679 function flatten(array, isDeep, guard) {
6680 var length = array ? array.length : 0;
6681 if (guard && isIterateeCall(array, isDeep, guard)) {
6684 return length ? baseFlatten(array, isDeep) : [];
6700 function flattenDeep(array) {
6701 var length = array ? array.length : 0;
6702 return length ? baseFlatten(array, true) : [];
6737 function indexOf(array, value, fromIndex) {
6738 var length = array ? array.length : 0;
6745 var index = binaryIndex(array, value),
6746 other = array[index];
6750 return baseIndexOf(array, value, fromIndex);
6766 function initial(array) {
6767 return dropRight(array, 1);
6805 var array = args[0],
6807 length = array ? array.length : 0,
6813 value = array[index];
6844 function last(array) {
6845 var length = array ? array.length : 0;
6846 return length ? array[length - 1] : undefined;
6874 function lastIndexOf(array, value, fromIndex) {
6875 var length = array ? array.length : 0;
6883 index = binaryIndex(array, value, true) - 1;
6884 var other = array[index];
6888 return indexOfNaN(array, index, true);
6891 if (array[index] === value) {
6922 var array = arguments[0];
6923 if (!(array && array.length)) {
6924 return array;
6934 while ((fromIndex = indexOf(array, value, fromIndex)) > -1) {
6935 splice.call(array, fromIndex, 1);
6938 return array;
6966 function pullAt(array) {
6967 return basePullAt(array || [], baseFlatten(arguments, false, false, 1));
7004 function remove(array, predicate, thisArg) {
7006 length = array ? array.length : 0,
7011 var value = array[index];
7012 if (predicate(value, index, array)) {
7014 splice.call(array, index--, 1);
7035 function rest(array) {
7036 return drop(array, 1);
7053 function slice(array, start, end) {
7054 var length = array ? array.length : 0;
7058 if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
7062 return baseSlice(array, start, end);
7110 function sortedIndex(array, value, iteratee, thisArg) {
7113 ? binaryIndex(array, value)
7114 : binaryIndexBy(array, value, func(iteratee, thisArg, 1));
7138 function sortedLastIndex(array, value, iteratee, thisArg) {
7141 ? binaryIndex(array, value, true)
7142 : binaryIndexBy(array, value, func(iteratee, thisArg, 1), true);
7170 function take(array, n, guard) {
7171 var length = array ? array.length : 0;
7175 if (guard ? isIterateeCall(array, n, guard) : n == null) {
7178 return baseSlice(array, 0, n < 0 ? 0 : n);
7206 function takeRight(array, n, guard) {
7207 var length = array ? array.length : 0;
7211 if (guard ? isIterateeCall(array, n, guard) : n == null) {
7215 return baseSlice(array, n < 0 ? 0 : n);
7258 function takeRightWhile(array, predicate, thisArg) {
7259 var length = array ? array.length : 0;
7264 while (length-- && predicate(array[length], length, array)) {}
7265 return baseSlice(array, length + 1);
7308 function takeWhile(array, predicate, thisArg) {
7309 var length = array ? array.length : 0;
7315 while (++index < length && predicate(array[index], index, array)) {}
7316 return baseSlice(array, 0, index);
7390 function uniq(array, isSorted, iteratee, thisArg) {
7391 var length = array ? array.length : 0;
7398 iteratee = isIterateeCall(array, isSorted, thisArg) ? null : isSorted;
7406 ? sortedUniq(array, iteratee)
7407 : baseUniq(array, iteratee);
7428 function unzip(array) {
7430 length = (array && array.length && arrayMax(arrayMap(array, getLength))) >>> 0,
7434 result[index] = arrayMap(array, baseProperty(index));
7459 function without(array) {
7460 return baseDifference(array, baseSlice(arguments, 1));
7486 var array = arguments[index];
7487 if (isArray(array) || isArguments(array)) {
7489 ? baseDifference(result, array).concat(baseDifference(array, result))
7490 : array;
7513 array = Array(length);
7516 array[length] = arguments[length];
7518 return unzip(array);
13056 return this.filter(function(value, index, array) {
13059 return done || (done = !iteratee(value, index, array));
13065 return this.filter(function(value, index, array) {
13066 return !iteratee(value, index, array);
14641 var array = text.match(WORD_RE);
14645 for(var i = 0, l = array.length; i < l - 1; i++) {
14646 var item = array[i];
14681 function normalizeTextArray(array) {
14684 if (typeof array == 'string' || array instanceof String) {
14685 array = [ array ];
14688 for(var i = 0, l = array.length; i < l; i++) {
14689 var item = array[i];
18776 function Item(fun, array) {
18778 this.array = array;
18781 this.fun.apply(null, this.array);
26852 function arrayToHash(array) {
26855 array.forEach(function(val, idx) {
26918 var base = '', array = false, braces = ['{', '}'];
26922 array = true;
26947 if (keys.length === 0 && (!array || value.length == 0)) {
26962 if (array) {
26966 return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
27020 function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
27045 if (array) {
27060 if (array && key.match(/^\d+$/)) {