(hex)
| 11 | } |
| 12 | |
| 13 | export function hexToBinary(hex) { |
| 14 | let decimal = chunkString(hex, 2).map(value => parseInt(value, 16)); |
| 15 | |
| 16 | return decimal.map(value => decimalToBinary(value).padStart(8, '0')).join(''); |
| 17 | } |
| 18 | |
| 19 | export function hexToString(hex) { |
| 20 | let decimal = chunkString(hex, 2).map(value => parseInt(value, 16)); |
no test coverage detected