MCPcopy Create free account
hub / github.com/cryptii/cryptii / isSettingValid

Method isSettingValid

src/Brick.js:220–223  ·  view source on GitHub ↗

* Returns true, if settings matching the given setting names are valid. * @param {...names} names Setting names to be validated * @return {boolean} True, if valid

(...names)

Source from the content-addressed store, hash-verified

218 * @return {boolean} True, if valid
219 */
220 isSettingValid (...names) {
221 // Check if there is an invalid setting among the given setting names
222 return names.find(name => !this.getSetting(name).isValid()) === undefined
223 }
224
225 /**
226 * Returns true, if the brick input is randomizable.

Callers 4

Calls 2

getSettingMethod · 0.95
isValidMethod · 0.45

Tested by

no test coverage detected