Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/documentation/0049-node-module-events/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ Alias for `emitter.on()`.

Emits an event. It synchronously calls every event listener in the order they were registered.

```js
door.emit("slam") // emitting the event "slam"
```

## `emitter.eventNames()`

Return an array of strings that represent the events registered on the current `EventEmitter` object:
Expand Down