message: simplified if-else
diff: @@ -120,16 +120,16 @@ export default class Arrays {
  }
  public static copyOfUint8Array(original: Uint8Array, newLength: number): Uint8Array {
  - let newArray: Uint8Array;
  +
  if (original.length <= newLength) {
  - newArray = new Uint8Array(newLength);
  + const newArray = new Uint8Array(newLength);
  newArray.set(original);
  - } else {
  - newArray = original.slice(0, newLength);
  - }
  return newArray;
  }
  + return original.slice(0, newLength);
  + }
  +
  public static copyOfRange(original: Int32Array, from: number, to: number): Int32Array {
  const newLength = to - from;
  const copy = new Int32Array(newLength);
  