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

Method formSubmitArrayNumericString

src/AutoNumeric.js:3426–3434  ·  view source on GitHub ↗

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

(callback)

Source from the content-addressed store, hash-verified

3424 * @returns {AutoNumeric}
3425 */
3426 formSubmitArrayNumericString(callback) { //FIXME test this
3427 if (AutoNumericHelper.isFunction(callback)) {
3428 callback(this.formArrayNumericString());
3429 } else {
3430 AutoNumericHelper.throwError(`The given callback is not a function.`);
3431 }
3432
3433 return this;
3434 }
3435
3436 /**
3437 * Generate an array of the current formatted values from the `<input>` elements, and pass it to the given callback.

Callers 1

Calls 3

isFunctionMethod · 0.80
throwErrorMethod · 0.80

Tested by

no test coverage detected