Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

for-each

Package Overview
Dependencies
1
Maintainers
2
Versions
4
Issues
File Explorer

Advanced tools

for-each

A better forEach

    0.3.3latest

Version published
Maintainers
2
Weekly downloads
9,499,126
decreased by-8.68%

Weekly downloads

Readme

Source

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

FAQs

What is for-each?

A better forEach

Is for-each popular?

The npm package for-each receives a total of 9,025,669 weekly downloads. As such, for-each popularity was classified as popular.

Is for-each well maintained?

We found that for-each demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 2 open source maintainers collaborating on the project.

Last updated on 02 Jun 2018

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

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc