Open this example in the interactive library
Source code
const bytes = Uint8Array.of(239, 187, 191, 65);
const hasMark = [239, 187, 191].every((v, i) => bytes[i] === v);
console.log({ hasMark, text: new TextDecoder().decode(bytes) });
Sample output
{ hasMark: true, text: 'A' }