Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

event module

const EventEmitter = require('events');
const myEE = new EventEmitter();
myEE.on('foo', () => {});
myEE.on('bar', () => {});

const sym = Symbol('symbol');
myEE.on(sym, () => {});

console.log(myEE.eventNames());
// Prints: [ 'foo', 'bar', Symbol(symbol) ]
Comment

PREVIOUS NEXT
Code Example
Javascript :: does script defer keep order 
Javascript :: trigger keyup event jquery 
Javascript :: trackpad scrolling detected multiple times 
Javascript :: splinter wait for input 
Javascript :: Line logger 
Javascript :: react 1 to 10 rating 
Javascript :: pasar datos al redirect js node 
Javascript :: angular view not changing on model 
Javascript :: Unhandled Navigation Error: angular dist build 
Javascript :: remove image Input of element 
Javascript :: how to create event listener in javascript 
Javascript :: ProgressBar from color to color 
Javascript :: map vs subscribe angular 
Javascript :: how to filter data in javascript object 
Javascript :: animate on scroll angular 
Javascript :: dédoublé un tableau et supprimé les doublons 
Javascript :: add active class to button onclick react 
Javascript :: loop through json object jquery 
Javascript :: Reading manifest: Warning processing Description: An unexpected property was found in the WebExtension manifest. 
Javascript :: how to make messaging website with firebase javascript 
Javascript :: how to get value from select tag using jquery 
Javascript :: https - node load testing- 
Javascript :: declarar function javascript 
Javascript :: how to use props data inside setup 
Javascript :: Remove adjacent number 
Javascript :: erpnext date difference client script 
Javascript :: React uses _____________ syntax. 
Javascript :: Membuat contact di google contact dengan google app script, sync ke android. 
Javascript :: asp.net mvc with ext js 
Javascript :: Return Early Pattern for Functions 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =