feat: flattenArray()