Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

Segments.prototype[Symbol.iterator]()

2 tags 1 category

The Symbol.iterator method of Segments instances implements the iterable protocol and allows Segments objects to be consumed by most syntaxes expecting iterables, such as the spread syntax and for…of loops. It returns a segments iterator object that yields data about each segment.

Return value: A new iterable iterator object that yields data about each segment. Each yielded object has the same properties as the object returned by the containing() method.

Syntax example: segments[Symbol.iterator]()

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…