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

Function charCodes

lib/querystring.js:275–282  ·  view source on GitHub ↗

* @param {string} str * @returns {number[]}

(str)

Source from the content-addressed store, hash-verified

273 * @returns {number[]}
274 */
275function charCodes(str) {
276 if (str.length === 0) return [];
277 if (str.length === 1) return [StringPrototypeCharCodeAt(str, 0)];
278 const ret = new Array(str.length);
279 for (let i = 0; i < str.length; ++i)
280 ret[i] = StringPrototypeCharCodeAt(str, i);
281 return ret;
282}
283const defSepCodes = [38]; // &
284const defEqCodes = [61]; // =
285

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…