main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
448 bytes
|
Line | |
---|
1 | import asciiToArray from './_asciiToArray.js';
|
---|
2 | import hasUnicode from './_hasUnicode.js';
|
---|
3 | import unicodeToArray from './_unicodeToArray.js';
|
---|
4 |
|
---|
5 | /**
|
---|
6 | * Converts `string` to an array.
|
---|
7 | *
|
---|
8 | * @private
|
---|
9 | * @param {string} string The string to convert.
|
---|
10 | * @returns {Array} Returns the converted array.
|
---|
11 | */
|
---|
12 | function stringToArray(string) {
|
---|
13 | return hasUnicode(string)
|
---|
14 | ? unicodeToArray(string)
|
---|
15 | : asciiToArray(string);
|
---|
16 | }
|
---|
17 |
|
---|
18 | export default stringToArray;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.