MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / clone

Function clone

public/javascripts/socket.io.js:4015–4023  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

4013 };
4014
4015 function clone (obj) {
4016 var o = {};
4017 for (var i in obj) {
4018 if (obj.hasOwnProperty(i)) {
4019 o[i] = obj[i];
4020 }
4021 }
4022 return o;
4023 }
4024
4025 /**
4026 * Initializes transport to use and starts probe.

Callers 3

socket.io.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected