Powered by Uint8ClampedArray .
var cleanData = new Uint8ClampedArray( width * height * 4 );
Some background:
http://www.khronos.org/registry/typedarray/specs/latest/#7.1 Uint8ClampedArray is defined to replace CanvasPixelArray. It behaves the same way with other typed array representations, except that setters and the constructor use the [WEBIDL] clip instead of modular arithmetic when converting the values ββof incoming numbers.
source share