Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "hs/array/slice/index"

Index

Functions

Functions

slice

  • Works similarly to Array.slice but accepts hyper-array. It returns a hyper-value that always equals to result of applying Array.slice method to the original array.

    Type parameters

    • T

      type of hyper-array item

    Parameters

    • hs: HyperScope

      HyperScope instance

    • hv: HyperValue<T[]>

      hyper-array

    • Optional start: number | HyperValue<number>

      an index or hyper-value of one from which slice begins (updating this hyper-value leads to update of result hyper-value)

    • Optional end: number | HyperValue<number>

      an index or hyper-value of one from which slice begins (updating this hyper-value leads to update of result hyper-value)

    Returns HyperValue<T[]>

Generated using TypeDoc