All files / random / _platform.ts

100.00% Branches 0/0
100.00% Lines 3/3
1
2
3
4
5
6
 
 
x15
 
x45
x15




// Copyright 2018-2025 the Deno authors. MIT license.

export const platform = {
  // settable property for testing purposes
  littleEndian: new Uint8Array(new Uint16Array([1]).buffer)[0] === 1,
};