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

Function isNullAlt

javascript/selenium-webdriver/project_bidi_schema.mjs:124–125  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

122
123// A `null` keyword or a `nil` prelude ref in a union means the value may be null.
124const isNullAlt = (e) =>
125 e === 'null' || (e && typeof e === 'object' && e.Type === 'group' && PRELUDE[e.Value] === 'null')
126
127// The primitive a set of literal values shares (all strings → string, etc.), or
128// undefined when they are mixed. Used to type an inline literal choice.

Callers 1

projectRefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected