MCPcopy Index your code
hub / github.com/vercel/hyper / stringToArray

Function stringToArray

bin/yarn-standalone.js:9059–9063  ·  view source on GitHub ↗

* Converts `string` to an array. * * @private * @param {string} string The string to convert. * @returns {Array} Returns the converted array.

(string)

Source from the content-addressed store, hash-verified

9057 * @returns {Array} Returns the converted array.
9058 */
9059 function stringToArray(string) {
9060 return hasUnicode(string)
9061 ? unicodeToArray(string)
9062 : asciiToArray(string);
9063 }
9064
9065 /**
9066 * Used by `_.unescape` to convert HTML entities to characters.

Callers 8

createCaseFirstFunction · 0.85
createPaddingFunction · 0.85
toArrayFunction · 0.85
splitFunction · 0.85
trimFunction · 0.85
trimEndFunction · 0.85
trimStartFunction · 0.85
truncateFunction · 0.85

Calls 3

hasUnicodeFunction · 0.85
unicodeToArrayFunction · 0.85
asciiToArrayFunction · 0.85

Tested by

no test coverage detected