Skip to content

zbeach/otdt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

33096a4 · Mar 4, 2022

History

7 Commits
Jan 1, 2021
Mar 4, 2022
Jan 1, 2021
Jan 1, 2021
Jan 1, 2021

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