message: Address a DeepCode finding: replacing isNaN with Number.isNaN.
  According to Mozilla [1], Number.isNaN is a more robust version of the global isNaN.
  GitHub bug:
  [1]
diff: @@ -52,7 +52,7 @@ export function concat(...var_args: Uint8Array[]): Uint8Array {
  * @static
  */
  export function fromNumber(value: number): Uint8Array {
  - if (isNaN(value) || value % 1 !== 0) {
  + if (Number.isNaN(value) || value % 1 !== 0) {
  throw new InvalidArgumentsException('cannot convert non-integer value');
  }
  if (value < 0) {
  