lib/index.js
function(index)
  {
    //Check the index value
    if(index >= keys.length)
    {
      //Do the callback and exit
      return cb(null);
    }
    else
    {
      //Get the key
      var key = (is_array) ? index : keys[index];

      //Get the value
      var value = list[key];

      //Call the provided method with the element of the array
      return fn.call(null, key, value, function(error)
      {
        //Check the error
        if(error)
        {
          //Do the callback with the provided error
          return cb(error);
        }
        else
        {
          //Continue with the next item on the list
          return each_async(index + 1);
        }
      });
    }
  }
function(index)
  {
    //Check the index value
    if(index >= keys.length)
    {
      //Do the callback and exit
      return cb(null);
    }
    else
    {
      //Get the key
      var key = (is_array) ? index : keys[index];

      //Get the value
      var value = list[key];

      //Call the provided method with the element of the array
      return fn.call(null, key, value, function(error)
      {
        //Check the error
        if(error)
        {
          //Do the callback with the provided error
          return cb(error);
        }
        else
        {
          //Continue with the next item on the list
          return each_async(index + 1);
        }
      });
    }
  }
function ( index ) { //Check the index value if ( index >= keys . length ) { //Do the callback and exit return cb ( null ) ; } else { //Get the key var key = ( is_array ) ? index : keys [ index ] ; //Get the value var value = list [ key ] ; //Call the provided method with the element of the array return fn . call ( null , key , value , function ( error ) { //Check the error if ( error ) { //Do the callback with the provided error return cb ( error ) ; } else { //Continue with the next item on the list return each_async ( index + 1 ) ; } } ) ; } }
Call each element of the array
Call each element of the array