Create a `range` Helper Function with a Generator

Share this video with your friends

Send Tweet

Generator functions are great at generating data. You can create all types of functions that take params to define what sort of data to generate. The simplest example using a "start" and an "end" parameter to generate a range of numbers.