MCPcopy
hub / github.com/webpack/webpack / toSimpleString

Function toSimpleString

lib/util/compileBooleanMatcher.js:94–99  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

92 * @returns {string} string
93 */
94const toSimpleString = (str) => {
95 if (`${Number(str)}` === str) {
96 return str;
97 }
98 return JSON.stringify(str);
99};
100
101/**
102 * Compile boolean matcher.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected