![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
for-each-plus
Advanced tools
A better forEach.
Iterates over a list of elements, yielding each in turn to an iteratee function.
Inspired by _.forEach
. 😄
Install with npm
$ npm install for-each-plus
Or unpkg
<script src="https://unpkg.com/for-each-plus@1.0.3/umd/index.js" />
Check out the unit tests on CodePen.
Iterates over a list of elements, yielding each in turn to an iteratee function. The iteratee is bound to the context object, if one is passed. Each invocation of iteratee is called with three arguments: (element, index, list)
. If list is a JavaScript object, iteratee's arguments will be (value, key, list)
. Returns the list for chaining.
const forEach = require('for-each-plus');
forEach([1, 2], value => console.log(value));
// => Logs `1` then `2`.
forEach({ 'a': 1, 'b': 2 }, (value, key) => console.log(key));
// => Logs 'a' then 'b' (iteration order is not guaranteed).
Like us a lot? Help others know why you like us! Review this package on pkgreview.dev | ➡ | ![]() |
---|
Type: array
or object
Default: none
The collection of elements to iterate over.
Type: function
Default: none
Function to apply.
MIT
FAQs
A better forEach.
The npm package for-each-plus receives a total of 0 weekly downloads. As such, for-each-plus popularity was classified as not popular.
We found that for-each-plus demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.