MCPcopy Create free account
hub / github.com/lodash/lodash / stringToArray

Function stringToArray

lodash.js:1323–1327  ·  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

1321 * @returns {Array} Returns the converted array.
1322 */
1323 function stringToArray(string) {
1324 return hasUnicode(string)
1325 ? unicodeToArray(string)
1326 : asciiToArray(string);
1327 }
1328
1329 /**
1330 * Used by `_.unescape` to convert HTML entities to characters.

Callers 8

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

Calls 3

hasUnicodeFunction · 0.70
unicodeToArrayFunction · 0.70
asciiToArrayFunction · 0.70

Tested by

no test coverage detected