Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/component/select

Array filter utility
https://github.com/component/select

Last synced: 13 days ago
JSON representation

Array filter utility

Awesome Lists containing this project

README

        

# select

Select utility

## Installation

$ component install component/select

## API

### select(array, fn)

Filter `array` returning a new array:

```js
users = select(users, function(user){
return user.age > 20;
});
```

# License

MIT