Files
layui-js/node_modules/vinyl-fs/node_modules/vinyl/lib/isBuffer.js
sentsin 7feaa4eca0 clear
2017-08-21 08:50:25 +08:00

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