MCPcopy Create free account
hub / github.com/api-platform/website / assign

Function assign

pwa/utils/con/humanize-duration.js:274–285  ·  view source on GitHub ↗
(destination)

Source from the content-addressed store, hash-verified

272 }
273
274 function assign(destination) {
275 var source;
276 for (var i = 1; i < arguments.length; i++) {
277 source = arguments[i];
278 for (var prop in source) {
279 if (has(source, prop)) {
280 destination[prop] = source[prop];
281 }
282 }
283 }
284 return destination;
285 }
286
287 // We need to make sure we support browsers that don't have
288 // `Array.isArray`, so we define a fallback here.

Callers 2

resultFunction · 0.85
humanizerFunction · 0.85

Calls 1

hasFunction · 0.85

Tested by

no test coverage detected