MCPcopy
hub / github.com/webpack/webpack / unit

Method unit

lib/css/syntax.js:1407–1410  ·  view source on GitHub ↗

* @returns {string} the unit, lower-cased per spec (dimension tokens)

()

Source from the content-addressed store, hash-verified

1405 * @returns {string} the unit, lower-cased per spec (dimension tokens)
1406 */
1407 get unit() {
1408 const v = this.value;
1409 return v.slice(_consumeANumber(v, 0)).toLowerCase();
1410 }
1411}
1412
1413/**

Callers

nothing calls this directly

Calls 2

_consumeANumberFunction · 0.85
sliceMethod · 0.80

Tested by

no test coverage detected