Files
zoff/server/node_modules/gulp-util/lib/isBuffer.js
2015-07-03 17:19:05 +02:00

8 lines
209 B
JavaScript
Executable File

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