CodeIntermediate

Chaining

Also known as chain · method chaining · promise chain · promise chaining

Connecting operations so a returned value or promise becomes the starting point for the next operation.

In the real world

fetch('/api/terms').then(r => r.json()).then(terms => terms.length) chains promise-based steps.

Related

Go a little deeper