split
_.split(separator, string)
# Ⓢ [Ⓣ][1] Ⓝ
Splits string by separator.
Note: This method is based on
Since
4.0.0
Arguments
separator(RegExp|string): The separator pattern to split by.string(string): The string to split.
Returns
(Array): Returns the string segments.
Example
_.split(['-', 2], 'a-b-c');
// => ['a', 'b']