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