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

Function stringToArray

npm-package/_stringToArray.js:12–16  ·  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

10 * @returns {Array} Returns the converted array.
11 */
12function stringToArray(string) {
13 return hasUnicode(string)
14 ? unicodeToArray(string)
15 : asciiToArray(string);
16}
17
18module.exports = stringToArray;

Callers

nothing calls this directly

Calls 3

hasUnicodeFunction · 0.70
unicodeToArrayFunction · 0.70
asciiToArrayFunction · 0.70

Tested by

no test coverage detected