Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inDemoInstall

indexes-of

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Issues
File Explorer

Advanced tools

indexes-of

line String/Array#indexOf but return all the indexes in an array

    1.0.1latest
    Github

Version published
Maintainers
1
Weekly downloads
7,428,802
increased by6.29%

Weekly downloads

Readme

Source

indexes-of

like Array/String#indexOf but return all the indexes in an array.

var indexesOf = require('indexes-of') var twosIndexes = indexesOf([1, 2, 3, 4, 5, 4, 3, 2, 1], 2) console.log(twosIndexes) // [1, 7]

Haiku

  • A 5 line module.
  • But the tests are 40 lines.
  • npm publish.

License

MIT

FAQs

What is indexes-of?

line String/Array#indexOf but return all the indexes in an array

Is indexes-of popular?

The npm package indexes-of receives a total of 7,141,058 weekly downloads. As such, indexes-of popularity was classified as popular.

Is indexes-of well maintained?

We found that indexes-of demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 17 Nov 2013

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket[email protected]

Product

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc