mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Move internal modules to “internal” folder.
This commit is contained in:
18
.internal/stringToArray.js
Normal file
18
.internal/stringToArray.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import asciiToArray from './.internal/asciiToArray.js';
|
||||
import hasUnicode from './.internal/hasUnicode.js';
|
||||
import unicodeToArray from './.internal/unicodeToArray.js';
|
||||
|
||||
/**
|
||||
* Converts `string` to an array.
|
||||
*
|
||||
* @private
|
||||
* @param {string} string The string to convert.
|
||||
* @returns {Array} Returns the converted array.
|
||||
*/
|
||||
function stringToArray(string) {
|
||||
return hasUnicode(string)
|
||||
? unicodeToArray(string)
|
||||
: asciiToArray(string);
|
||||
}
|
||||
|
||||
export default stringToArray;
|
||||
Reference in New Issue
Block a user