MCPcopy
hub / github.com/livebud/bud / forOwn

Function forOwn

framework/view/ssr/svelte.js:29–35  ·  view source on GitHub ↗
(object2, callback)

Source from the content-addressed store, hash-verified

27 var object = {};
28 var hasOwnProperty = object.hasOwnProperty;
29 var forOwn = (object2, callback) => {
30 for (const key in object2) {
31 if (hasOwnProperty.call(object2, key)) {
32 callback(key, object2[key]);
33 }
34 }
35 };
36 var extend = (destination, source) => {
37 if (!source) {
38 return destination;

Callers 2

extendFunction · 0.85
jsesc2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected