projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
3a2e6a91d1dda342e297d912f1185caf153a8ec1
[dotfiles/.git]
/
for-each.js
1
var forEach = require('../array/virtual/for-each');
2
3
var ArrayPrototype = Array.prototype;
4
5
module.exports = function (it) {
6
var own = it.forEach;
7
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.forEach) ? forEach : own;
8
};