Skip to content

zbeach/otdt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

otdt

otdt offers an alternative syntax for IIFEs.

It's an abbreviation of "on these, do this".

// The normal way:
((a, b) => a + b)(1, 2)

// With otdt:
const e = require('otdt');
e((a = 1, b = 2) => a + b);

// Alternatively:
const e = require('otdt');
e(1, 2, (a, b) => a + b)

About

An alternative syntax for IIFEs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published