MCPcopy
hub / github.com/webpack/webpack / _typeFlagOf

Function _typeFlagOf

lib/css/syntax.js:1287–1288  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

1285 * @returns {"integer" | "number"} the spec type flag
1286 */
1287const _typeFlagOf = (s) =>
1288 s.includes(".") || s.includes("e") || s.includes("E") ? "number" : "integer";
1289
1290/**
1291 * Leaf token node — the only `Node` subclass. `value` is the raw source slice

Callers 2

typeFlagMethod · 0.85
syntax.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected