UNPKG

432 BJavaScriptView Raw
1
2import { 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 */
14const compose = (stringArray) => {
15 if (!Array.isArray(stringArray)) return undefined;
16 return stringArray.join('');
17}
18
19export { compose }