* 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)
| 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. |
no test coverage detected