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

Function isLiteral

javascript/selenium-webdriver/normalize_bidi_ast.mjs:112–114  ·  view source on GitHub ↗

True when `entry` is a string/number/bool literal (`{Type:'literal', Value}`).

(entry)

Source from the content-addressed store, hash-verified

110
111/** True when `entry` is a string/number/bool literal (`{Type:'literal', Value}`). */
112function isLiteral(entry) {
113 return entry && typeof entry === 'object' && entry.Type === 'literal'
114}
115
116/** True when `entry` is the CDDL null keyword (bare `'null'`) or a `nil`/`null` prelude ref. */
117function isNullArm(entry) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected