MCPcopy
hub / github.com/autoNumeric/autoNumeric / formatOther

Method formatOther

src/AutoNumeric.js:2886–2888  ·  view source on GitHub ↗

* Format and return the given value, or set the formatted value into the given DOM element if one is passed as an argument. * By default, this use the current element settings. * The user can override any option of its choosing by passing an option object. * * @param {number|HTML

(valueOrElement, optionOverride = null)

Source from the content-addressed store, hash-verified

2884 * @returns {string|null}
2885 */
2886 formatOther(valueOrElement, optionOverride = null) { //FIXME test this
2887 return this._formatOrUnformatOther(true, valueOrElement, optionOverride);
2888 }
2889
2890 /**
2891 * Unformat and return the raw numeric string corresponding to the given value, or directly set the unformatted value into the given DOM element if one is passed as an argument.

Callers 1

Calls 1

Tested by

no test coverage detected