MCPcopy
hub / github.com/webpack/webpack / isValidId

Function isValidId

lib/stats/DefaultStatsPrinterPlugin.js:125–131  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

123 * @returns {id is string | number} is i
124 */
125const isValidId = (id) => {
126 if (typeof id === "number" || id) {
127 return true;
128 }
129
130 return false;
131};
132
133/**
134 * Returns string representation of list.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected