MCPcopy
hub / github.com/handlebars-lang/handlebars.js / extend

Function extend

lib/handlebars/utils.js:18–28  ·  view source on GitHub ↗
(obj /* , ...source */)

Source from the content-addressed store, hash-verified

16}
17
18export function extend(obj /* , ...source */) {
19 for (let i = 1; i < arguments.length; i++) {
20 for (let key in arguments[i]) {
21 if (Object.prototype.hasOwnProperty.call(arguments[i], key)) {
22 obj[key] = arguments[i][key];
23 }
24 }
25 }
26
27 return obj;
28}
29
30export let toString = Object.prototype.toString;
31

Callers 7

base.jsFile · 0.90
compiler.jsFile · 0.90
compileFunction · 0.90
base.jsFile · 0.90
createProtoAccessControlFunction · 0.90
inline.jsFile · 0.90
createFrameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected