array-foreach

WebJar for array-foreach

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

array-foreach
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

array-foreach
WebJar for array-foreach
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/twada/array-foreach

Download array-foreach

How to add to project

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

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.

array-foreach

Build Status NPM package Bower package Dependency Status License

Array#forEach ponyfill for older browsers

DESCRIPTION

Provides forEach function for older browsers, use native implememtation if exists.

It's just like

EXAMPLE

var forEach = require('array-foreach');
var result = '';
forEach(['foo', 'bar', 'baz'], function (element, index, array) {
    result += element;
});
console.log(result); // 'foobarbaz'

INSTALL

via npm

Install

$ npm install --save array-foreach

Use

var forEach = require('array-foreach');

via bower

Install

$ bower install --save array-foreach

Load (forEach function is exported)

<script type="text/javascript" src="./path/to/bower_components/array-foreach/build/array-foreach.js"></script>

Use

var result = '';
forEach(['foo', 'bar', 'baz'], function (element, index, array) {
    result += element;
});

AUTHOR

LICENSE

Licensed under the MIT license.

Versions

Version
1.0.2
1.0.1