MCPcopy Index your code
hub / github.com/angular/angular / eventNameToString

Function eventNameToString

packages/zone.js/lib/node/events.ts:28–36  ·  view source on GitHub ↗
(eventName: string | Symbol)

Source from the content-addressed store, hash-verified

26 };
27
28 const eventNameToString = function (eventName: string | Symbol) {
29 if (typeof eventName === 'string') {
30 return eventName;
31 }
32 if (!eventName) {
33 return '';
34 }
35 return eventName.toString().replace('(', '_').replace(')', '_');
36 };
37
38 function patchEventEmitterMethods(obj: any) {
39 const result = patchEventTarget(global, api, [obj], {

Callers 3

prepareEventNamesFunction · 0.85
makeAddListenerFunction · 0.85
patchEventTargetMethodsFunction · 0.85

Calls 2

toStringMethod · 0.65
replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…