MCPcopy Index your code
hub / github.com/autoNumeric/autoNumeric / _historyTableCurrentValueUsed

Method _historyTableCurrentValueUsed

src/AutoNumeric.js:1826–1840  ·  view source on GitHub ↗

* Return the currently used value from the history table. * * @returns {string|number} * @private

()

Source from the content-addressed store, hash-verified

1824 * @private
1825 */
1826 _historyTableCurrentValueUsed() {
1827 let indexToUse = this.historyTableIndex;
1828 if (indexToUse < 0) {
1829 indexToUse = 0;
1830 }
1831
1832 let result;
1833 if (AutoNumericHelper.isUndefinedOrNullOrEmpty(this.historyTable[indexToUse])) {
1834 result = '';
1835 } else {
1836 result = this.historyTable[indexToUse].value;
1837 }
1838
1839 return result;
1840 }
1841
1842 /**
1843 * Parse the `styleRules` option and run the test for each given rules, either pre-defined ones like `positive`, `negative` and `ranges`, or user defined callbacks within the `userDefined` attribute.

Callers 1

_historyTableAddMethod · 0.95

Calls 1

Tested by

no test coverage detected