Comparing version 2.1.0 to 3.0.0
@@ -29,3 +29,3 @@ "use strict"; | ||
val = Obj[key]; | ||
if(_f.call($this,val,key,this) === false){ | ||
if(_f.call($this,key,val,this) === false){ | ||
break; | ||
@@ -32,0 +32,0 @@ } |
{ | ||
"name": "arc-array", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"description": "An array convenience subclass", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -52,4 +52,4 @@ # arc-array [![Build Status](https://travis-ci.org/anyuzer/arc-array.svg?branch=master)](https://travis-ci.org/anyuzer/arc-array) | ||
**callback** is a required function that is called with 3 arguments passed in | ||
* index: the index of the current iteration | ||
* value: the value of the current index being iterated over | ||
* index: the index of the current iteration | ||
* array: the reference to the original ArcArray object | ||
@@ -56,0 +56,0 @@ |
@@ -14,3 +14,3 @@ var tap = require('tap'); | ||
//Ensure the iteration behaves as expected | ||
testArray.each(function(_value,_index){ | ||
testArray.each(function(_index,_value){ | ||
switch(_index){ | ||
@@ -26,3 +26,3 @@ case 0: _test.equal(_value,'a'); break; | ||
let count = 0; | ||
testArray.each(function(_v,_i){ | ||
testArray.each(function(_i,_v){ | ||
if(_i === 2){ | ||
@@ -29,0 +29,0 @@ return false; |