You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

for-each

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

for-each - npm Package Compare versions

Comparing version

to
0.3.2

4

index.js

@@ -0,1 +1,3 @@

var isFunction = require('is-function')
module.exports = forEach

@@ -7,3 +9,3 @@

function forEach(list, iterator, context) {
if (toString.call(iterator) !== '[object Function]') {
if (!isFunction(iterator)) {
throw new TypeError('iterator must be a function')

@@ -10,0 +12,0 @@ }

{
"name": "for-each",
"version": "0.3.1",
"version": "0.3.2",
"description": "A better forEach",

@@ -23,3 +23,5 @@ "keywords": [],

},
"dependencies": {},
"dependencies": {
"is-function": "~1.0.0"
},
"devDependencies": {

@@ -26,0 +28,0 @@ "tape": "~1.1.0"