MCPcopy Index your code
hub / github.com/nodejs/node / removeASCIIWhitespace

Function removeASCIIWhitespace

lib/internal/data_url.js:319–321  ·  view source on GitHub ↗

* @see https://infra.spec.whatwg.org/#strip-leading-and-trailing-ascii-whitespace * @param {string} str * @param {boolean} [leading] * @param {boolean} [trailing] * @returns {string}

(str, leading = true, trailing = true)

Source from the content-addressed store, hash-verified

317 * @returns {string}
318 */
319function removeASCIIWhitespace(str, leading = true, trailing = true) {
320 return removeChars(str, leading, trailing, isASCIIWhitespace);
321}
322
323/**
324 * @param {string} str

Callers 1

dataURLProcessorFunction · 0.70

Calls 1

removeCharsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…