Replace each with forEach

This commit is contained in:
Sashko Stubailo
2017-11-10 11:27:21 -08:00
committed by Ben Newman
parent c18ff138c9
commit 2f10c82a50

View File

@@ -439,7 +439,7 @@ class ArgumentChecker {
// or check([foo, bar], [String]) to count... but only if value wasn't
// itself an argument.
if (Array.isArray(value) || isArguments(value)) {
_.each(value, self._checkingOneValue.bind(self));
Array.prototype.forEach.call(value, self._checkingOneValue.bind(self));
}
}