Why Would Anyone Need Javascript Generator Functions

Why Would Anyone Need Javascript Generator Functions