Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "assert/is-dataview/docs/types/index.d"

Index

Functions

Functions

Export assignment isDataView

  • isDataView(value: any): boolean
  • Tests if a value is a DataView.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating whether value is a DataView

    Example

    var ArrayBuffer = require( `@stdlib/array/buffer` );
    var DataView = require( `@stdlib/array/dataview` );
    
    var bool = isDataView( new DataView( new ArrayBuffer( 10 ) ) );
    // returns true

    Example

    var bool = isDataView( [] );
    // returns false