MCPcopy Create free account
hub / github.com/EsperoTech/yaade / iterateObject

Method iterateObject

server/src/main/resources/jasmine.js:7217–7226  ·  view source on GitHub ↗
(obj, fn)

Source from the content-addressed store, hash-verified

7215 }
7216
7217 iterateObject(obj, fn) {
7218 const objKeys = j$.MatchersUtil.keys(obj, j$.isArray_(obj));
7219 const length = Math.min(objKeys.length, j$.MAX_PRETTY_PRINT_ARRAY_LENGTH);
7220
7221 for (let i = 0; i < length; i++) {
7222 fn(objKeys[i]);
7223 }
7224
7225 return objKeys.length > length;
7226 }
7227
7228 emitScalar(value) {
7229 this.append(value);

Callers 2

emitArrayMethod · 0.95
emitObjectMethod · 0.95

Calls 1

minMethod · 0.80

Tested by

no test coverage detected