> For the complete documentation index, see [llms.txt](https://jscula.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jscula.gitbook.io/docs/manipulation/.pipe.md).

# .pipe()

Passes an element or collection through a list of functions. Use it to compose small operations.

<kbd>*.pipe(callback,...callbacks)*</kbd>

```javascript
$('#profile').pipe(
  el => el.addClass('loaded'),
  el => el.find('.name').text('Ada')
);
```

```javascript
$('.card*').pipe(
  cards => cards.filter(card => card.hasClass('active')),
  cards => cards.forEach(card => card.addClass('visible'))
);
```
