Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "assert/is-node-stream-like/docs/types/index.d"

Index

Functions

Functions

Export assignment isNodeStreamLike

  • isNodeStreamLike(value: any): boolean
  • Tests if a value is Node stream-like.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating if a value is Node stream-like

    Example

    var transformStream = require( `@stdlib/streams/node/transform` );
    
    var stream = transformStream();
    
    var bool = isNodeStreamLike( stream );
    // returns true
    
    bool = isNodeStreamLike( {} );
    // returns false