What if JavaScript changed the keyword from true
to something like yes
or yea
or totally
?
Chaos.
That is what true-value
is for.
const trueValue = require('true-value')
console.log(trueValue) // true
Make sure to check out the sister project, FalseJS! Related: