You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
261 B
14 lines
261 B
5 months ago
|
var hasOwnProp = require('./hasOwnProp')
|
||
|
|
||
|
function objectEach (obj, iterate, context) {
|
||
|
if (obj) {
|
||
|
for (var key in obj) {
|
||
|
if (hasOwnProp(obj, key)) {
|
||
|
iterate.call(context, obj[key], key, obj)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = objectEach
|