summaryrefslogtreecommitdiff
path: root/node_modules/gulp-debug/node_modules/gulp-util/lib/isBuffer.js
blob: 7c52f78c91836f8bc5cf4afe89011a3a9edd7cb7 (plain)
1
2
3
4
5
6
7
var buf = require('buffer');
var Buffer = buf.Buffer;

// could use Buffer.isBuffer but this is the same exact thing...
module.exports = function(o) {
  return typeof o === 'object' && o instanceof Buffer;
};