Right now, I achieve it by
if (obj instanceof Uint8Array || obj instanceof Uint16Array || obj instanceof Uint32Array ......
Its a very long line. I know that testing instanceof against the parent class of an object yields true so is there a parent class among those typed arrays? I tried TypedArray but according to chrome it doesn't exist.
Anyone know if there is a base class between the typed arrays? Or some other method?