• This project
    • Loading...
  • Sign in

강현준 / RTC

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • RTC
  • node_modules
  • socket.io-parser
  • is-buffer.js
  • 강현준's avatar
    first commit · 54df592f
    54df592f
    강현준 authored 2017-12-03 21:10:06 +0900
is-buffer.js 252 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 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);
}