MCPcopy
hub / github.com/autoNumeric/autoNumeric / formSubmitArrayFormatted

Method formSubmitArrayFormatted

src/AutoNumeric.js:3443–3451  ·  view source on GitHub ↗

* Generate an array of the current formatted values from the ` ` elements, and pass it to the given callback. * Under the hood, the array is generated via a call to `formArrayFormatted()`. * * @param {function} callback * @returns {AutoNumeric}

(callback)

Source from the content-addressed store, hash-verified

3441 * @returns {AutoNumeric}
3442 */
3443 formSubmitArrayFormatted(callback) { //FIXME test this
3444 if (AutoNumericHelper.isFunction(callback)) {
3445 callback(this.formArrayFormatted());
3446 } else {
3447 AutoNumericHelper.throwError(`The given callback is not a function.`);
3448 }
3449
3450 return this;
3451 }
3452
3453 /**
3454 * Generate an array of localized strings from the `<input>` elements, and pass it to the given callback.

Callers 1

Calls 3

formArrayFormattedMethod · 0.95
isFunctionMethod · 0.80
throwErrorMethod · 0.80

Tested by

no test coverage detected