blob: 0e23782c4130e9d24f59baff613a980bae8332d9 (
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;
};
|