MCPcopy Create free account
hub / github.com/jsbin/jsbin / pick

Function pick

public/js/processors/processor.js:46–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 };
45
46 function pick() {
47 var args = [].slice.call(arguments, 0);
48 var target = args.shift();
49 return args.reduce(function (acc, curr) {
50 acc[curr] = target[curr] || null;
51 return acc;
52 }, {});
53 }
54
55 /**
56 * Create a processor – accepts an object containing:

Callers 1

createProcessorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected