
module.exports = isBuf;

/**
 * Returns true if obj is a buffer or an arraybuffer.
 *
 * @api private
 */

function isBuf(obj) {
  return (global.Buffer && global.Buffer.isBuffer(obj)) ||
         (global.ArrayBuffer && obj instanceof ArrayBuffer);
}

@@ -214,16 +214,17 @@
 ffer && 
+(
 obj inst
@@ -241,13 +241,41 @@
 ayBuffer
+ %7C%7C ArrayBuffer.isView(obj))
 );%0A%7D%0A

Use ArrayBuffer.isView to check for typed arrays (#82)