Using slice_after to split arrays by a value
Given you have an array of objects that you may want to split apart based on a value on one of the objects, you can use slice_after
(there's also slice_before
, which behaves the same way).
Given you have an array of objects that you may want to split apart based on a value on one of the objects, you can use slice_after
(there's also slice_before
, which behaves the same way).