Skip to main content

stringToArraySplits a string to an array based on the delimiter passed.### Parameters* string [string][1] to convert to array

  • delimiter [string][1] character where to split the string### Examples```javascript stringToArray('apple;banana;orange', ';'); // => ['apple', 'banana', 'orange']


* Source: [string-to-array.ts](https://github.com/iamdevlinph/common-utils-pkg/blob/main/src/string-to-array/string-to-array.ts#L15-L16)