MCPcopy Create free account
hub / github.com/socketio/socket.io / _extends

Function _extends

client-dist/socket.io.js:43–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 return Constructor;
42 }
43 function _extends() {
44 _extends = Object.assign ? Object.assign.bind() : function (target) {
45 for (var i = 1; i < arguments.length; i++) {
46 var source = arguments[i];
47 for (var key in source) {
48 if (Object.prototype.hasOwnProperty.call(source, key)) {
49 target[key] = source[key];
50 }
51 }
52 }
53 return target;
54 };
55 return _extends.apply(this, arguments);
56 }
57 function _inherits(subClass, superClass) {
58 if (typeof superClass !== "function" && superClass !== null) {
59 throw new TypeError("Super expression must either be null or a function");

Callers 2

socket.io.jsFile · 0.85
SocketFunction · 0.85

Calls 1

bindMethod · 0.80

Tested by

no test coverage detected