Lines Matching refs:index

123 exports.index = index;
343 function index(element) {
1271 var index = -1,
1275 accumulator = array[++index];
1277 while (++index < length) {
1278 accumulator = iteratee(accumulator, array[index], index, array);
1295 var index = -1,
1300 while (++index < length) {
1301 var value = array[index];
1303 if (predicate(value, index, array)) {
1320 var index = -1,
1325 while (++index < length) {
1326 var value = array[index];
1328 result[++resIndex] = iteratee(value, index, array);
1345 var index = -1,
1348 while (++index < length) {
1349 if (iteratee(array[index], index, array) === false) {
2147 var index = -1;
2153 index = rangeFrom - 1;
2155 while (++index <= rangeTo) {
2156 if (iteratee(index) === false) {
2170 var index = rangeFrom + 1;
2176 while (--index >= rangeTo) {
2177 if (iteratee(index) === false) {
4280 var index = -1;
4285 while (++index < length) {
4286 if (!globalHandlers[index] || globalHandlers[index].skip) {
4291 var res = globalHandlers[index].call(context, p1, p2, p3, p4, p5, p6);
4296 if (globalHandlers[index] && globalHandlers[index].runOnce) {
4297 this.remove(key, globalHandlers[index]);
5423 (0, _array.arrayEach)(items, function (value, index) {
5424 if (index > 0) {
11063 function get$1 (format, index, field, setter) {
11065 var utc = createUTC().set(setter, index);
11069 function listMonthsImpl (format, index, field) {
11071 index = format;
11077 if (index != null) {
11078 return get$1(format, index, field, 'month');
11097 function listWeekdaysImpl (localeSorted, format, index, field) {
11100 index = format;
11107 index = format;
11111 index = format;
11121 if (index != null) {
11122 return get$1(format, (index + shift) % 7, field, 'day');
11133 function listMonths (format, index) {
11134 return listMonthsImpl(format, index, 'months');
11137 function listMonthsShort (format, index) {
11138 return listMonthsImpl(format, index, 'monthsShort');
11141 function listWeekdays (localeSorted, format, index) {
11142 return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
11145 function listWeekdaysShort (localeSorted, format, index) {
11146 return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
11149 function listWeekdaysMin (localeSorted, format, index) {
11150 return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
13331 var index,
13341 for (index = 0; length > index; ++index) {
13342 if (this.hasOwnProperty(index)) {
13344 value = callback(value, this[index], index, this);
13346 value = this[index];
13673 var index = 0;
13676 for (;length > index; index++) if (NO_HOLES || index in self) {
13677 val = self[index];
13678 res = f(val, index, O);
13680 if (IS_MAP) result[index] = res; // map
13684 case 6: return index; // findIndex
13751 var index = 5;
13752 while (index--) $instance[ADDER](index, index);
13836 var index = 0;
13840 if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {
13841 result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
13884 module.exports = function (index, length) {
13885 index = toInteger(index);
13886 return index < 0 ? max(index + length, 0) : min(index, length);
14205 alter: function alter(action, index, amount, source, keepEmptyRows) {
14210 function spliceWith(data, index, count, toInject) {
14226 spliceArgs.unshift(index, 0);
14240 index = (0, _mixed.isDefined)(index) ? index : numberOfSourceRows;
14242 delta = datamap.createRow(index, amount, source);
14243 spliceWith(priv.cellSettings, index, amount, 'array');
14246 if (selection.isSelected() && priv.selRange.from.row >= index) {
14256 delta = datamap.createCol(index, amount, source);
14260 spliceWith(priv.cellSettings[row], index, amount);
14266 var spliceArray = [index, 0];
14271 if (selection.isSelected() && priv.selRange.from.col >= index) {
14281 datamap.removeRow(index, amount, source);
14282 priv.cellSettings.splice(index, amount);
14286 if (fixedRowsTop >= index + 1) {
14287 instance.getSettings().fixedRowsTop -= Math.min(amount, fixedRowsTop - index);
14291 if (fixedRowsBottom && index >= totalRows - fixedRowsBottom) {
14300 var visualColumnIndex = recordTranslator.toPhysicalColumn(index);
14302 datamap.removeCol(index, amount, source);
14312 if (fixedColumnsLeft >= index + 1) {
14313 instance.getSettings().fixedColumnsLeft -= Math.min(amount, fixedColumnsLeft - index);
14602 var index = {
14608 …var result = instance.runHooks('beforeAutofillInsidePopulate', index, direction, input, deltas, {}…
15475 this.spliceCol = function (col, index, amount /* , elements... */) {
15498 this.spliceRow = function (row, index, amount /* , elements... */) {
16000 this.alter = function (action, index, amount, source, keepEmptyRows) {
16001 grid.alter(action, index, amount, source, keepEmptyRows);
16381 this.spliceCellsMeta = function (index, deleteAmount) {
16388 …(_priv$cellSettings = priv.cellSettings).splice.apply(_priv$cellSettings, [index, deleteAmount].co…
16713 var index = 0;
16715 for (; index < columnsLen; index++) {
16716 …, _function.isFunction)(instance.getSettings().columns) && instance.getSettings().columns(index)) {
16717 arr.push(index);
17490 function spreadsheetColumnLabel(index) {
17491 var dividend = index + 1;
18267 var index = this._i++;
18268 if (!O || index >= O.length) {
18272 if (kind == 'keys') return step(0, index);
18273 if (kind == 'values') return step(0, O[index]);
18274 return step(0, [index, O[index]]);
19025 module.exports = function (object, index, value) {
19026 if (index in object) $defineProperty.f(object, index, createDesc(0, value));
19027 else object[index] = value;
21589 var index = 0;
21595 for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
21596 …createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.va…
21600 for (result = new C(length); length > index; index++) {
21601 createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
21604 result.length = index;
21626 var index = 0;
21629 while (aLen > index) createProperty(result, index, arguments[index++]);
22050 var index = 0;
22053 var $index = index++;
22188 lastIndex = match.index + match[0][LENGTH];
22190 output.push(string.slice(lastLastIndex, match.index));
22196 … if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));
22201 …if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite l…
22387 var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length));
22390 ? $startsWith.call(that, search, index)
22391 : that.slice(index, index + search.length) === search;
25399 value: function offsetted(index) {
25400 return index + this.offset;
25410 value: function unOffsetted(index) {
25411 return index - this.offset;
25421 value: function renderedToSource(index) {
25422 return this.offsetted(index);
25432 value: function sourceToRendered(index) {
25433 return this.unOffsetted(index);
25443 value: function offsettedTH(index) {
25444 return index - this.countTH;
25454 value: function unOffsettedTH(index) {
25455 return index + this.countTH;
25465 value: function visibleRowHeadedColumnToSourceColumn(index) {
25466 return this.renderedToSource(this.offsettedTH(index));
25476 value: function sourceColumnToVisibleRowHeadedColumn(index) {
25477 return this.unOffsettedTH(this.sourceToRendered(index));
25524 value: function offsetted(index) {
25525 return index + this.offset;
25535 value: function unOffsetted(index) {
25536 return index - this.offset;
25546 value: function renderedToSource(index) {
25547 return this.offsetted(index);
25557 value: function sourceToRendered(index) {
25558 return this.unOffsetted(index);
25568 value: function offsettedTH(index) {
25569 return index - this.countTH;
25579 value: function unOffsettedTH(index) {
25580 return index + this.countTH;
25590 value: function visibleColHeadedRowToSourceRow(index) {
25591 return this.renderedToSource(this.offsettedTH(index));
25601 value: function sourceRowToVisibleColHeadedRow(index) {
25602 return this.unOffsettedTH(this.sourceToRendered(index));
27438 var row = (0, _element.index)(TR);
28373 value: function getTrForColumnHeaders(index) {
28374 return this.THEAD.childNodes[index];
29336 AutocompleteEditor.prototype.highlightBestMatchingChoice = function (index) {
29337 if (typeof index === 'number') {
29338 this.htEditor.selectCell(index, 0);
29382 index: valueIndex,
29391 if (b.index === -1) {
29394 if (a.index === -1) {
29398 if (a.index < b.index) {
29400 } else if (b.index < a.index) {
29402 } else if (a.index === b.index) {
29698 getValueByIndex: function getValueByIndex(index) {
29702 return (value = this._arrayMap[index]) === void 0 ? null : value;
29713 var index = void 0;
29716 return (index = this._arrayMap.indexOf(value)) === -1 ? null : index;
29727 insertItems: function insertItems(index) {
29736 addedItems.push(_this._arrayMap.splice(index + count, 0, newIndex + count));
29750 removeItems: function removeItems(index) {
29757 if (Array.isArray(index)) {
29761 index.sort(function (a, b) {
29765 removedItems = (0, _array.arrayReduce)(index, function (acc, item) {
29771 removedItems = this._arrayMap.splice(index, amount);
29784 unshiftItems: function unshiftItems(index) {
29787 var removedItems = this.removeItems(index, amount);
29818 shiftItems: function shiftItems(index) {
29824 if (row >= index) {
29832 _this3._arrayMap.splice(index + count, 0, index + count);
30622 (0, _number.rangeEach)(specifierRange.from, specifierRange.to, function (index) {
30623 var sample = _this.generateSample(type, range, index);
30625 samples.set(index, sample);
30649 (0, _number.rangeEach)(range.from, range.to, function (index) {
30653 value = _this2.dataFactory(specifierValue, index);
30655 value = _this2.dataFactory(index, specifierValue);
30682 sample.strings.push(_defineProperty({ value: value }, computedKey, index));
30711 var index = toAbsoluteIndex(fromIndex, length);
30715 if (IS_INCLUDES && el != el) while (length > index) {
30716 value = O[index++];
30720 } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
30721 if (O[index] === el) return IS_INCLUDES || index || 0;
30778 var index = fastKey(key);
30780 if (index !== 'F') return that._i[index];
30854 var prev, index;
30861 i: index = fastKey(key, true), // <- index
30872 if (index !== 'F') that._i[index] = entry;
30952 var index = arrayFindIndex(this.a, function (it) {
30955 if (~index) this.a.splice(index, 1);
30956 return !!~index;
31223 var index = 1;
31226 while (aLen > index) {
31227 var S = IObject(arguments[index++]);
33389 var index = columnsAsFunc ? filteredIndex : i;
33390 this.colToPropCache[index] = column.data;
33391 this.propToColCache.set(column.data, index);
33461 DataMap.prototype.createRow = function (index, amount, source) {
33471 if (typeof index !== 'number' || index >= this.instance.countSourceRows()) {
33472 index = this.instance.countSourceRows();
33474 this.instance.runHooks('beforeCreateRow', index, amount, source);
33476 currentIndex = index;
33492 row = this.instance.getSettings().dataSchema(index);
33498 if (index === this.instance.countSourceRows()) {
33501 this.spliceData(index, 0, row);
33508 this.instance.runHooks('afterCreateRow', index, numberOfCreatedRows, source);
33523 DataMap.prototype.createCol = function (index, amount, source) {
33537 if (typeof index !== 'number' || index >= this.instance.countCols()) {
33538 index = this.instance.countCols();
33540 this.instance.runHooks('beforeCreateCol', index, amount, source);
33542 currentIndex = index;
33548 if (typeof index !== 'number' || index >= this.instance.countCols()) {
33573 this.instance.runHooks('afterCreateCol', index, numberOfCreatedCols, source);
33588 DataMap.prototype.removeRow = function (index, amount, source) {
33592 if (typeof index !== 'number') {
33593 index = -amount;
33596 amount = this.instance.runHooks('modifyRemovedAmount', amount, index);
33598 index = (this.instance.countSourceRows() + index) % this.instance.countSourceRows();
33600 var logicRows = this.visualRowsToPhysical(index, amount);
33601 …var actionWasNotCancelled = this.instance.runHooks('beforeRemoveRow', index, amount, logicRows, so…
33610 newData = this.filterData(index, amount);
33617 this.instance.runHooks('afterRemoveRow', index, amount, logicRows, source);
33631 DataMap.prototype.removeCol = function (index, amount, source) {
33638 if (typeof index !== 'number') {
33639 index = -amount;
33642 index = (this.instance.countCols() + index) % this.instance.countCols();
33644 var logicColumns = this.visualColumnsToPhysical(index, amount);
33648 …var actionWasNotCancelled = this.instance.runHooks('beforeRemoveCol', index, amount, logicColumns,…
33680 this.instance.runHooks('afterRemoveCol', index, amount, logicColumns, source);
33693 DataMap.prototype.spliceCol = function (col, index, amount /* , elements... */) {
33697 var removed = colData.slice(index, index + amount);
33698 var after = colData.slice(index + amount);
33707 this.instance.populateFromArray(index, col, elements, null, null, 'spliceCol');
33720 DataMap.prototype.spliceRow = function (row, index, amount /* , elements... */) {
33724 var removed = rowData.slice(index, index + amount);
33725 var after = rowData.slice(index + amount);
33733 this.instance.populateFromArray(row, index, [elements], null, null, 'spliceRow');
33745 DataMap.prototype.spliceData = function (index, amount, element) {
33746 var continueSplicing = this.instance.runHooks('beforeDataSplice', index, amount, element);
33749 this.dataSource.splice(index, amount, element);
33760 DataMap.prototype.filterData = function (index, amount) {
33761 var physicalRows = this.visualRowsToPhysical(index, amount);
33762 var continueSplicing = this.instance.runHooks('beforeDataFilter', index, amount, physicalRows);
33765 var newData = this.dataSource.filter(function (row, index) {
33766 return physicalRows.indexOf(index) == -1;
33917 DataMap.prototype.visualRowsToPhysical = function (index, amount) {
33919 var physicRow = (totalRows + index) % totalRows;
33941 DataMap.prototype.visualColumnsToPhysical = function (index, amount) {
33943 var physicalCol = (totalCols + index) % totalCols;
36056 var result = (0, _array.arrayReduce)(strings, function (previousValue, currentValue, index) {
36059 var expressionForIndex = expressions[index] ? expressions[index] : '';
41704 (0, _array.arrayEach)(changes, function (change, index) {
41705 var nextChange = changesLength > index + 1 ? changes[index + 1] : null;
42508 (0, _array.arrayEach)(rows, function (value, index, array) {
42834 this.addHook('beforeRemoveCol', function (index, amount) {
42835 return _this2.onBeforeRemoveCol(index, amount);
42837 this.addHook('afterRemoveCol', function (index, amount) {
42838 return _this2.onAfterRemoveCol(index, amount);
42840 this.addHook('afterCreateCol', function (index, amount) {
42841 return _this2.onAfterCreateCol(index, amount);
42927 (0, _array.arrayEach)(columns, function (column, index, array) {
42928 array[index] = _this3.columnsMapper.getValueByIndex(column);
42932 (0, _array.arrayEach)(columns, function (column, index) {
42936 _this3.columnsMapper.moveColumn(actualPosition, target + index);
43190 (0, _array.arrayEach)(this.columnsMapper._arrayMap, function (value, index, array) {
43192 columnsToRemove.push(index);
43434 value: function onAfterCreateCol(index, amount) {
43435 this.columnsMapper.shiftItems(index, amount);
43448 value: function onBeforeRemoveCol(index, amount) {
43453 if (index !== false) {
43455 (0, _number.rangeEach)(index, index + amount - 1, function (removedIndex) {
43471 value: function onAfterRemoveCol(index, amount) {
44525 this.addHook('beforeRemoveRow', function (index, amount) {
44526 return _this2.onBeforeRemoveRow(index, amount);
44528 this.addHook('afterRemoveRow', function (index, amount) {
44529 return _this2.onAfterRemoveRow(index, amount);
44531 this.addHook('afterCreateRow', function (index, amount) {
44532 return _this2.onAfterCreateRow(index, amount);
44621 (0, _array.arrayEach)(rows, function (row, index, array) {
44622 array[index] = _this3.rowsMapper.getValueByIndex(row);
44626 (0, _array.arrayEach)(rows, function (row, index) {
44630 _this3.rowsMapper.moveRow(actualPosition, target + index);
44898 (0, _array.arrayEach)(this.rowsMapper._arrayMap, function (value, index, array) {
44900 rowsToRemove.push(index);
45149 value: function onAfterCreateRow(index, amount) {
45150 this.rowsMapper.shiftItems(index, amount);
45163 value: function onBeforeRemoveRow(index, amount) {
45168 if (index !== false) {
45170 (0, _number.rangeEach)(index, index + amount - 1, function (removedIndex) {
45186 value: function onAfterRemoveRow(index, amount) {
46371 MergeCells.prototype.shiftCollection = function (direction, index, count) {
46399 if (index <= currentMerge.col) {
46402 } else if (index <= currentMerge.row) {
48753 TableView.prototype.updateCellHeader = function (element, index, content) {
48754 var renderedIndex = index;
48760 renderedIndex = parentOverlay.wtTable.columnFilter.sourceToRendered(index);
48762 renderedIndex = parentOverlay.wtTable.rowFilter.sourceToRendered(index);
48767 (0, _element.fastInnerHTML)(element, content(index));
49270 var index = toAbsoluteIndex(aLen > 1 ? arguments[1] : undefined, length);
49273 while (endPos > index) O[index++] = value;