Skip to content

Instantly share code, notes, and snippets.

@MarkTiedemann
Created February 4, 2020 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save MarkTiedemann/6b8e5dc8087538a980846e63380b33a0 to your computer and use it in GitHub Desktop.
Save MarkTiedemann/6b8e5dc8087538a980846e63380b33a0 to your computer and use it in GitHub Desktop.
let isLittleEndian = new Uint8Array(new Uint16Array([0x1234]).buffer)[0] === 0x34;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment