Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/component/select
Array filter utility
https://github.com/component/select
Last synced: 13 days ago
JSON representation
Array filter utility
- Host: GitHub
- URL: https://github.com/component/select
- Owner: component
- Created: 2012-09-19T18:16:35.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-02T15:21:55.000Z (over 10 years ago)
- Last Synced: 2024-05-08T17:06:44.415Z (8 months ago)
- Language: JavaScript
- Size: 120 KB
- Stars: 5
- Watchers: 5
- 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