Skip to content

ymichael/js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js

Simple implementations of basic javascript constructs.

An excuse to try out karma and writing unit tests in javascript.

Modules

  • EventEmitter

Examples

// EventEmitter
var ee = EventEmitter();

var foo = 0;
var handleFoo = function() {
    foo += 1;
};

ee.on('foo', handleFoo);
ee.emit('foo');
// foo = 1

ee.off('foo', handleFoo);
ee.emit('foo')
// foo = 1

Run tests

$ npm install
$ make tests

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors