MCPcopy
hub / github.com/socketio/socket.io / pick

Function pick

packages/socket.io/client-dist/socket.io.js:685–695  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

683 function createCookieJar() {}
684
685 function pick(obj) {
686 for (var _len = arguments.length, attr = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
687 attr[_key - 1] = arguments[_key];
688 }
689 return attr.reduce(function (acc, k) {
690 if (obj.hasOwnProperty(k)) {
691 acc[k] = obj[k];
692 }
693 return acc;
694 }, {});
695 }
696 // Keep a reference to the real timeout functions so they can be used when overridden
697 var NATIVE_SET_TIMEOUT = globalThisShim.setTimeout;
698 var NATIVE_CLEAR_TIMEOUT = globalThisShim.clearTimeout;

Callers 3

doOpenFunction · 0.90
_createMethod · 0.90
socket.io.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected