split-with-surplus
v1.0.0
Published
String.split with a limit where the surplus is placed as a last element
Downloads
1
Readme
split-with-surplus
String.split with a limit where the surplus is placed as a last element.
splitWithSurplus('a:b:c:d:e:f', ':', 3);
// ['a', 'b', 'c', 'd:e:f']