Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "array/base/unitspace/docs/types/index.d"

Index

Functions

Functions

Export assignment unitspace

  • unitspace(x1: number, x2: number): Array<number>
  • Generates a linearly spaced numeric array whose elements increment by 1.

    Parameters

    • x1: number

      first array value

    • x2: number

      array element bound

    Returns Array < number >

    linearly spaced numeric array

    Example

    var arr = unitspace( 0, 6 );
    // returns [ 0, 1, 2, 3, 4, 5 ]