How extract arrays from array depend on values

Simply, I want to split the main array to multiple arrays
extract new Array if “div” value found