JSFiddle - React, Tailwind, and code Playground
by kdrdgn
JavaScript
const conf = {LIVE_POSITION: false};
const off = true;
if( conf.LIVE_POSITION === !!off ){
console.log('live position is on');
}else{
console.log('live position is off');
}
by kdrdgn
const conf = {LIVE_POSITION: false};
const off = true;
if( conf.LIVE_POSITION === !!off ){
console.log('live position is on');
}else{
console.log('live position is off');
}