MCPcopy Index your code
hub / github.com/socketio/socket.io / _toPropertyKey

Function _toPropertyKey

client-dist/socket.io.js:266–269  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

264 return (hint === "string" ? String : Number)(input);
265 }
266 function _toPropertyKey(arg) {
267 var key = _toPrimitive(arg, "string");
268 return typeof key === "symbol" ? key : String(key);
269 }
270
271 var PACKET_TYPES = Object.create(null); // no Map = no polyfill
272 PACKET_TYPES["open"] = "0";

Callers 1

_definePropertiesFunction · 0.85

Calls 1

_toPrimitiveFunction · 0.85

Tested by

no test coverage detected