MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / intBound

Function intBound

javascript/selenium-webdriver/project_bidi_schema.mjs:255–255  ·  view source on GitHub ↗
(b)

Source from the content-addressed store, hash-verified

253 // marker; consult it so `(0.0..1.0)` is a number range, not — as its integral bounds alone
254 // would read — an integer one. A bound with no marker falls back to its value's integralness.
255 const intBound = (b) => !b.IsFloat && Number.isInteger(b.Value)
256 const intRange = intBound(e.Value.Min) && intBound(e.Value.Max) // e.g. js-uint (0..MAX) vs latitude (-90.0..90.0)
257 const node = { primitive: intRange ? 'integer' : 'number', min, max }
258 // The parser's `Inclusive: false` is the `...` form, which excludes only the upper bound.

Callers 1

projectEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected