Pass an Array to a Callback with a forOf Function

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

The patterns we've established can also work well with plain old Objects and Arrays. We just have to capture the behavior of accessing those values inside of our broadcaster so the values can be passed down into a listener.