MCPcopy
hub / github.com/autoNumeric/autoNumeric / areSettingsValid

Method areSettingsValid

src/AutoNumeric.js:4336–4345  ·  view source on GitHub ↗

* Return `true` if the settings/options are valid, `false` otherwise. * * @param {object} options * @returns {boolean}

(options)

Source from the content-addressed store, hash-verified

4334 * @returns {boolean}
4335 */
4336 static areSettingsValid(options) {
4337 let isValid = true;
4338 try {
4339 this.validate(options, true);
4340 } catch (error) {
4341 isValid = false;
4342 }
4343
4344 return isValid;
4345 }
4346
4347 /**
4348 * Return the default autoNumeric settings.

Callers 1

Calls 1

validateMethod · 0.95

Tested by

no test coverage detected