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

Method formSubmitArrayLocalized

src/AutoNumeric.js:3461–3469  ·  view source on GitHub ↗

* Generate an array of localized strings from the ` ` elements, and pass it to the given callback. * Under the hood, the array is generated via a call to `formArrayLocalized()`. * * @param {function} callback * @param {null|string} forcedOutputFormat If set to something dif

(callback, forcedOutputFormat = null)

Source from the content-addressed store, hash-verified

3459 * @returns {AutoNumeric}
3460 */
3461 formSubmitArrayLocalized(callback, forcedOutputFormat = null) { //FIXME test this
3462 if (AutoNumericHelper.isFunction(callback)) {
3463 callback(this.formArrayLocalized(forcedOutputFormat));
3464 } else {
3465 AutoNumericHelper.throwError(`The given callback is not a function.`);
3466 }
3467
3468 return this;
3469 }
3470
3471 /**
3472 * Generate a JSON string with the numeric strings values from the `<input>` elements, and pass it to the given callback.

Callers 1

Calls 3

formArrayLocalizedMethod · 0.95
isFunctionMethod · 0.80
throwErrorMethod · 0.80

Tested by

no test coverage detected