ternary-toggle
1.0.0 • Public • Published
const toggle = require('ternary-toggle');
const opt1 = () => {
return Math.floor(365 * 10 * 0.1);
};
const opt2 = () => {
return Math.ceil(365 * 10 * 0.1);
};
const val = toggle(type === 'up', opt1, opt2);
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.0.0
1
Version History
- VersionDownloads (Last 7 Days)
- 1.0.0
1
Package Sidebar
Install
Weekly Downloads