2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2025-02-05 05:28:26 +00:00
2017-07-31 15:51:51 +05:30

14 lines
252 B
JavaScript

module.exports = isBuf;
/**
* Returns true if obj is a buffer or an arraybuffer.
*
* @api private
*/
function isBuf(obj) {
return (global.Buffer && global.Buffer.isBuffer(obj)) ||
(global.ArrayBuffer && obj instanceof ArrayBuffer);
}