Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bjarneo/array-find
Finding all the occurrences of an element in an array
https://github.com/bjarneo/array-find
Last synced: 3 days ago
JSON representation
Finding all the occurrences of an element in an array
- Host: GitHub
- URL: https://github.com/bjarneo/array-find
- Owner: bjarneo
- Created: 2015-01-09T19:54:39.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-09T20:03:27.000Z (almost 10 years ago)
- Last Synced: 2024-10-13T15:51:52.228Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 117 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# a-find
![Travis](https://travis-ci.org/bjarneo/array-find.svg?branch=master)Finding all the occurrences of an element in an array
###Install
```Javascript
npm install --save a-find
```###Usage
```Javascript
var find = require('a-find');find(['a', 'b', 'c', 'd', 'c'], 'c') // => [2, 4]
find(['a', 'b', 'c', 'd', 'c'], 'b') // => [1]
```