mirror of
https://github.com/owenlejeune/AirHockey.git
synced 2025-11-20 06:20:55 -05:00
first commit
This commit is contained in:
13
node_modules/socket.io-parser/is-buffer.js
generated
vendored
Normal file
13
node_modules/socket.io-parser/is-buffer.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
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 || ArrayBuffer.isView(obj)));
|
||||
}
|
||||
Reference in New Issue
Block a user