https://github.com/component/select
Array filter utility
https://github.com/component/select
Last synced: 17 days ago
JSON representation
Array filter utility
- Host: GitHub
- URL: https://github.com/component/select
- Owner: component
- Created: 2012-09-19T18:16:35.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2014-05-02T15:21:55.000Z (over 11 years ago)
- Last Synced: 2025-08-15T04:41:11.716Z (3 months ago)
- Language: JavaScript
- Size: 120 KB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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