split

String
since 4.0.0

Returns

Array the string segments.

Splits string by separator.

Note: This method is based on String#split.

Example of Lodash _.split

_.split('a-b-c', '-', 2);
// => ['a', 'b']