partition-all (npm): Returns a sequence of lists like partition, but may include partitions with fewer than n items at the end.
Keywords: partition-all|array