Skip to content

Latest commit

 

History

History
5 lines (5 loc) · 581 Bytes

File metadata and controls

5 lines (5 loc) · 581 Bytes
## stringToArraySplits a string to an array based on the delimiter passed.### Parameters* `string` **[String][1]** string to convert to array
  • delimiter [String][1] where to split the string### Examples```javascript stringToArray('apple;banana;orange', ';'); // => ['apple', 'banana', 'orange']