MCPcopy
hub / github.com/Kong/insomnia / stringToArray

Function stringToArray

packages/insomnia/bin/yarn-standalone.js:8970–8974  ·  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

8968 * @returns {Array} Returns the converted array.
8969 */
8970 function stringToArray(string) {
8971 return hasUnicode(string)
8972 ? unicodeToArray(string)
8973 : asciiToArray(string);
8974 }
8975
8976 /**
8977 * 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