2016-10-10 03:43:44 +02:00
|
|
|
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;
|
2017-04-20 03:09:25 +02:00
|
|
|
};
|