8000 GitHub - dominictarr/indexes-of · GitHub
[go: up one dir, main page]

Skip to content
  • About

    No description, website, or topics provided.

    Resources

    Stars

    28 stars

    Watchers

    1 watching

    Forks

    Latest commit

     

    History

    5 Commits

    Folders and files

    NameName
    Last commit message
    Last commit date
     
     
     
     
     
     
     
     
     
     
     
     

    Repository files navigation

    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

    About

    No description, website, or topics provided.

    Resources

    Stars

    28 stars

    Watchers

    1 watching

    Forks

    Releases

    Packages

    Used by

    Contributors

    Languages

    0