Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "hs/array/sort/index"

Index

Functions

Functions

sort

  • works similarly to Array.sort but accepts hyper-array. It returns a hyper-value of new sorted array that always equals to result of applying Array.sort method to the original array. It does not modify the original array.

    Type parameters

    • T

      type of hyper-array item

    Parameters

    • hs: HyperScope

      HyperScope instance

    • hv: HyperValue<T[]>

      hyper-array

    • Optional sortFn: undefined | function

      function to be used in sort (same as for Array.sort)

    Returns HyperValue<T[]>

Generated using TypeDoc