MCPcopy Create free account
hub / github.com/breck7/scroll / _isValid

Method _isValid

external/.scrollLibs.js:18737–18742  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18735class ParsersNumberAtom extends AbstractParsersBackedAtom {}
18736class ParsersIntegerAtom extends ParsersNumberAtom {
18737 _isValid() {
18738 const atom = this.getAtom()
18739 const num = parseInt(atom)
18740 if (isNaN(num)) return false
18741 return num.toString() === atom
18742 }
18743 get optionCount() {
18744 const minVal = parseInt(this.min) || -Infinity
18745 const maxVal = parseInt(this.max) || Infinity

Callers

nothing calls this directly

Calls 2

getAtomMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected