@aegenet/belt-array-string-join
v2.2.0
Published
Array.join() is slow, this tool helps you to join() your string array faster.
Downloads
35
Readme
@aegenet/belt-array-string-join
Join & Concat Array of Strings
/!\ The performance improvement is NOT relevant if you use ts-node.
💾 Installation
yarn add @aegenet/belt-array-string-join@^2.0.0
# or
npm i @aegenet/belt-array-string-join@^2.0.0
📝 Usage
import { stringJoin, stringConcat } from '@aegenet/belt-array-string-join';
stringConcat(['Hello', ' ', 'Boris']); // 'Hello Boris'
stringConcat(['Hello', ' ', 'Boris', 1]); // ' Boris'
stringConcat(['Hello', ' ', 'Boris', 2]); // 'Boris'
stringJoin(['Hello', 'Boris'], ' '); // 'Hello Boris'
stringJoin(['Hello', 'Boris'], ' ', 1); // 'Boris'