How to use the merge.apply function in merge

To help you get started, we’ve selected a few merge examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github scottcorgan / tessed / index.js View on Github external
return tapeFn(testName, function (t) {

      var end = t.end.bind(t)

      // Call all beforeEach fns and set return as context
      // to pass to test methods

      var beforeEachReturns = beforeEach.map(function (be) {

        return be()
      })

      t.context = merge.apply(null, beforeEachReturns)
      t.end = function () {

        afterEach.forEach(function (ae) {

          ae({
            context: t.context
          })
        })
        end()
      }

      //
      var ret = fn({
        equal: t.equal,
        deepEqual: t.deepEqual,
        pass: t.pass,
github sealcode / sealious / bin / node_modules / prometheus-resource-type / resource-type.js View on Github external
return new Promise(function(resolve, reject){
				resolve(merge.apply(merge, responses));
			})
		});

merge

(recursive)? merging of (cloned)? objects.

MIT
Latest version published 3 years ago

Package Health Score

67 / 100
Full package analysis