MCPcopy
hub / github.com/webpack/webpack / num

Function num

test/walkCssTokensParser.unittest.js:78–81  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

76 * @returns {import("../lib/css/syntax").NumberToken} parsed number token
77 */
78 const num = (s) =>
79 /** @type {import("../lib/css/syntax").NumberToken} */ (
80 parseAComponentValue(s)
81 );
82 const int = num("123");
83 expect([int.numericValue, int.typeFlag, int.sign]).toEqual([
84 123,

Callers 1

Calls 1

parseAComponentValueFunction · 0.85

Tested by

no test coverage detected