Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/common.util"

Index

Functions

findProductGroup

  • findProductGroup(hierarchyPath: any, productGroups: any): any
  • Function that find product group for given hierarchial path.

    Parameters

    • hierarchyPath: any

      list of id's

    • productGroups: any

      list of product groups

    Returns any

sortItems

  • sortItems(list: any[], sortKey?: string, orderByDesc?: boolean): any[]
  • Function which sorts given array

    Parameters

    • list: any[]

      Array which needed to be sorted. It can be Array of string or numbers or objects.

    • Optional sortKey: string

      Optional. Pass a sort by key.

    • Optional orderByDesc: boolean

      Optional. This is to specify order. Pass true for descending.

    Returns any[]

Generated using TypeDoc