• This project
    • Loading...
  • Sign in

민병수 / Voicoding

%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
  • Voicoding
  • node_modules
  • is-stream-ended
  • index.js
  • 천현우's avatar
    add modules · 83582752
    83582752
    천현우 authored 2021-05-25 17:56:41 +0900
index.js 232 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13
'use strict';

module.exports = function (stream) {
  var ended;

  if (typeof stream.ended !== 'undefined') {
    ended = stream.ended;
  } else {
    ended = stream._readableState.ended;
  }

  return Boolean(ended).valueOf();
};