0.0.1 • Published 5 years ago
@irrelon/boolean-map v0.0.1
Boolean Map
Tiny helper to map boolean values to a string.
Example
const result = booleanMap({
"11": "1st",
"01": "2nd",
"10": "3rd",
"00": "4th"
}, true, false);
console.log(result); // Outputs "3rd"
Install
npm i @irrelon/booleanmap
0.0.1
5 years ago