@@ -298,6 +298,7 @@ added: v0.1.26
298298-->
299299- ` eventName ` {string|symbol}
300300- ` ...args ` {any}
301+ - Returns: {boolean}
301302
302303Synchronously calls each of the listeners registered for the event named
303304` eventName ` , in the order they were registered, passing the supplied arguments
@@ -310,6 +311,8 @@ Returns `true` if the event had listeners, `false` otherwise.
310311added: v6.0.0
311312-->
312313
314+ - Returns: {Array}
315+
313316Returns an array listing the events for which the emitter has registered
314317listeners. The values in the array will be strings or Symbols.
315318
@@ -331,6 +334,8 @@ console.log(myEE.eventNames());
331334added: v1.0.0
332335-->
333336
337+ - Returns: {integer}
338+
334339Returns the current max listener value for the ` EventEmitter ` which is either
335340set by [ ` emitter.setMaxListeners(n) ` ] [ ] or defaults to
336341[ ` EventEmitter.defaultMaxListeners ` ] [ ] .
@@ -341,6 +346,7 @@ added: v3.2.0
341346-->
342347
343348* ` eventName ` {string|symbol} The name of the event being listened for
349+ * Returns: {integer}
344350
345351Returns the number of listeners listening to the event named ` eventName ` .
346352
@@ -354,6 +360,7 @@ changes:
354360 original listeners instead of wrapper functions now.
355361-->
356362- ` eventName ` {string|symbol}
363+ - Returns: {Function[ ] }
357364
358365Returns a copy of the array of listeners for the event named ` eventName ` .
359366
@@ -372,6 +379,7 @@ added: v0.1.101
372379
373380* ` eventName ` {string|symbol} The name of the event.
374381* ` listener ` {Function} The callback function
382+ * Returns: {EventEmitter}
375383
376384Adds the ` listener ` function to the end of the listeners array for the
377385event named ` eventName ` . No checks are made to see if the ` listener ` has
@@ -408,6 +416,7 @@ added: v0.3.0
408416
409417* ` eventName ` {string|symbol} The name of the event.
410418* ` listener ` {Function} The callback function
419+ * Returns: {EventEmitter}
411420
412421Adds a ** one-time** ` listener ` function for the event named ` eventName ` . The
413422next time ` eventName ` is triggered, this listener is removed and then invoked.
@@ -441,6 +450,7 @@ added: v6.0.0
441450
442451* ` eventName ` {string|symbol} The name of the event.
443452* ` listener ` {Function} The callback function
453+ * Returns: {EventEmitter}
444454
445455Adds the ` listener ` function to the * beginning* of the listeners array for the
446456event named ` eventName ` . No checks are made to see if the ` listener ` has
@@ -463,6 +473,7 @@ added: v6.0.0
463473
464474* ` eventName ` {string|symbol} The name of the event.
465475* ` listener ` {Function} The callback function
476+ * Returns: {EventEmitter}
466477
467478Adds a ** one-time** ` listener ` function for the event named ` eventName ` to the
468479* beginning* of the listeners array. The next time ` eventName ` is triggered, this
@@ -481,6 +492,7 @@ Returns a reference to the `EventEmitter`, so that calls can be chained.
481492added: v0.1.26
482493-->
483494- ` eventName ` {string|symbol}
495+ - Returns: {EventEmitter}
484496
485497Removes all listeners, or those of the specified ` eventName ` .
486498
@@ -496,6 +508,7 @@ added: v0.1.26
496508-->
497509- ` eventName ` {string|symbol}
498510- ` listener ` {Function}
511+ - Returns: {EventEmitter}
499512
500513Removes the specified ` listener ` from the listener array for the event named
501514` eventName ` .
@@ -564,6 +577,7 @@ Returns a reference to the `EventEmitter`, so that calls can be chained.
564577added: v0.3.5
565578-->
566579- ` n ` {integer}
580+ - Returns: {EventEmitter}
567581
568582By default EventEmitters will print a warning if more than ` 10 ` listeners are
569583added for a particular event. This is a useful default that helps finding
@@ -579,6 +593,7 @@ Returns a reference to the `EventEmitter`, so that calls can be chained.
579593added: v9.4.0
580594-->
581595- ` eventName ` {string|symbol}
596+ - Returns: {Function[ ] }
582597
583598Returns a copy of the array of listeners for the event named ` eventName ` ,
584599including any wrappers (such as those created by ` .once ` ).
0 commit comments