JSFiddle - React, Tailwind, and code Playground
JavaScript
console.clear();
const num = 0x70,
b = (k, n) => (n >>> (8 * k)) & 0xff;
console.log(
b(6, num).toString(16),
0x70 >> 32
)
console.clear();
const num = 0x70,
b = (k, n) => (n >>> (8 * k)) & 0xff;
console.log(
b(6, num).toString(16),
0x70 >> 32
)