1.0.0 • Published 6 years ago

split-with-surplus v1.0.0

Weekly downloads
14
License
ISC
Repository
github
Last release
6 years ago

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']
1.0.0

6 years ago