Last active
          August 29, 2015 13:58 
        
      - 
      
 - 
        
Save shimdh/10376952 to your computer and use it in GitHub Desktop.  
    Fast forEach method than native method in Node.js
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | "use strict"; | |
| module.exports = function(obj, func, context) { | |
| var kIndex, | |
| length; | |
| for (kIndex = 0, length = obj.length; kIndex < length; kIndex++) { | |
| func.call(context, obj[kIndex], kIndex, obj); | |
| } | |
| }; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment