Using reduce to flatten an array