const runner = (convert) => {
let v;
for (let i = 0; i < 100000; i++) {
v = convert(true);
}
return v;
};const v = runner(Number);
const v = runner((bool) => bool ? 1 : 0);const v = runner((bool) => +bool);const v = runner((bool) => bool | 0);const v = runner((bool) => bool & 1);const v = runner((bool) => ~~bool);const v = runner((bool) => bool * 1);