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

Function hasOwn

packages/engine.io/lib/server.ts:170–172  ·  view source on GitHub ↗
(obj: Record<string, any>, key: string)

Source from the content-addressed store, hash-verified

168
169// Object.hasOwn() was introduced in Node.js 16.9
170function hasOwn(obj: Record<string, any>, key: string): boolean {
171 return Object.prototype.hasOwnProperty.call(obj, key);
172}
173
174export abstract class BaseServer extends EventEmitter {
175 public opts: ServerOptions;

Callers 3

verifyFunction · 0.85
closeFunction · 0.85
onWebTransportSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected