|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
450 bytes
|
| Line | |
|---|
| 1 | var asciiToArray = require('./_asciiToArray'),
|
|---|
| 2 | hasUnicode = require('./_hasUnicode'),
|
|---|
| 3 | unicodeToArray = require('./_unicodeToArray');
|
|---|
| 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 | module.exports = stringToArray;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.