Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "ndarray/base/assert/is-order/docs/types/index.d"

Index

Functions

Functions

Export assignment isOrder

  • isOrder(v: any): boolean
  • Tests whether an input value is an ndarray order.

    Parameters

    • v: any

      value to test

    Returns boolean

    boolean indicating whether an input value is an ndarray order

    Example

    var bool = isOrder( 'row-major' );
    // returns true
    
    bool = isOrder( 'column-major' );
    // returns true
    
    bool = isOrder( 'foo' );
    // returns false