function isTypedArray(obj) {
    const TypedArray = Object.getPrototypeOf(Uint8Array);
    return typeof obj === 'object'
        && obj instanceof TypedArray;
}
@returns whether the provided parameter is of type `Buffer` or Uint8Array dervived type