2017-09-13 07:52:34 +02:00

8 lines
209 B
JavaScript
Vendored

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