indexes-of

WebJar for indexes-of

License

License

MIT
Categories

Categories

Dex General Purpose Libraries Utility
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

indexes-of
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

indexes-of
WebJar for indexes-of
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/dominictarr/indexes-of

Download indexes-of

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/indexes-of/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>indexes-of</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/indexes-of/
implementation 'org.webjars.npm:indexes-of:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/indexes-of/
implementation ("org.webjars.npm:indexes-of:1.0.1")
'org.webjars.npm:indexes-of:jar:1.0.1'
<dependency org="org.webjars.npm" name="indexes-of" rev="1.0.1">
  <artifact name="indexes-of" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='indexes-of', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "indexes-of" % "1.0.1"
[org.webjars.npm/indexes-of "1.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.0.1