split-with

Returns an array of [takeWhile(coll, pred), dropWhile(coll, pred)]

Browse on unpkg