1 |
|
2 | import { re } from './string-re';
|
3 |
|
4 | /**
|
5 | * Function to compose uni8 string from array
|
6 | * @function string.compose
|
7 | * @param {array} stringArray - an array of uni8 symbols
|
8 | * @returns {string} string of uni8 symbols
|
9 | * @example
|
10 | * string.compose(['𝠀','𝠁'])
|
11 | *
|
12 | * return '𝠀𝠁'
|
13 | */
|
14 | const compose = (stringArray) => {
|
15 | if (!Array.isArray(stringArray)) return undefined;
|
16 | return stringArray.join('');
|
17 | }
|
18 |
|
19 | export { compose }
|