3 var toPosInt = require('../../number/to-pos-integer')
4 , callable = require('../../object/valid-callable')
5 , value = require('../../object/valid-value')
7 , hasOwnProperty = Object.prototype.hasOwnProperty
8 , call = Function.prototype.call;
10 module.exports = function (cb/*, thisArg*/) {
13 self = Object(value(this));
15 thisArg = arguments[1];
17 for (i = toPosInt(self.length); i >= 0; --i) {
18 if (hasOwnProperty.call(self, i)) call.call(cb, thisArg, self[i], i, self);