MCPcopy
hub / github.com/json-editor/json-editor / assign

Function assign

docs/scripts/ajv-validator.js:7207–7215  ·  view source on GitHub ↗
(target, source)

Source from the content-addressed store, hash-verified

7205 return obj !== undefined && obj !== null ? obj instanceof Array ? obj : typeof obj.length !== "number" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj) : [];
7206 }
7207 function assign(target, source) {
7208 var obj = target;
7209 if (source) {
7210 for (var key in source) {
7211 obj[key] = source[key];
7212 }
7213 }
7214 return obj;
7215 }
7216
7217 function buildExps(isIRI) {
7218 var ALPHA$$ = "[A-Za-z]",

Callers 1

resolveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected