for-each

WebJar for for-each

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

for-each
Last Version

Last Version

0.3.3
Release Date

Release Date

Type

Type

jar
Description

Description

for-each
WebJar for for-each
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/Raynos/for-each

Download for-each

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : is-callable jar [1.1.3,2)

Project Modules

There are no modules declared in this project.

for-each build status

browser support

A better forEach.

Example

Like Array.prototype.forEach but works on objects.

var forEach = require("for-each")

forEach({ key: "value" }, function (value, key, object) {
    /* code */
})

As a bonus, it's also a perfectly function shim/polyfill for arrays too!

var forEach = require("for-each")

forEach([1, 2, 3], function (value, index, array) {
    /* code */
})

Installation

npm install for-each

Contributors

  • Raynos

MIT Licenced

Versions

Version
0.3.3
0.3.2