MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / forAllProps

Function forAllProps

lib/web/CodeMirror/addon/hint/javascript-hint.js:102–109  ·  view source on GitHub ↗
(obj, callback)

Source from the content-addressed store, hash-verified

100 "if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes").split(" ");
101
102 function forAllProps(obj, callback) {
103 if (!Object.getOwnPropertyNames || !Object.getPrototypeOf) {
104 for (var name in obj) callback(name)
105 } else {
106 for (var o = obj; o; o = Object.getPrototypeOf(o))
107 Object.getOwnPropertyNames(o).forEach(callback)
108 }
109 }
110
111 function getCompletions(token, context, keywords, options) {
112 var found = [], start = token.string, global = options && options.globalScope || window;

Callers 1

gatherCompletionsFunction · 0.85

Calls 2

callbackFunction · 0.50
forEachMethod · 0.45

Tested by

no test coverage detected