MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / forOwn

Function forOwn

code/songhop/www/lib/platform/platform.js:165–171  ·  view source on GitHub ↗

* Iterates over an object's own properties, executing the `callback` for each. * * @private * @param {Object} object The object to iterate over. * @param {Function} callback The function executed per own property.

(object, callback)

Source from the content-addressed store, hash-verified

163 * @param {Function} callback The function executed per own property.
164 */
165 function forOwn(object, callback) {
166 for (var key in object) {
167 if (hasOwnProperty.call(object, key)) {
168 callback(object[key], key, object);
169 }
170 }
171 }
172
173 /**
174 * Gets the internal `[[Class]]` of a value.

Callers 2

eachFunction · 0.85
platform.jsFile · 0.85

Calls 1

callbackFunction · 0.50

Tested by

no test coverage detected