Portfolio/node_modules/gulp-util/lib/isBuffer.js
oitsjustjose 4e066bffc9 Init
2017-02-25 03:50:31 -05:00

7 lines
209 B
JavaScript

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;
};