OpenSheetMusicDisplay
    Preparing search index...

    Class CollectionUtil

    This class implements static methods to perform useful operations on lists, dictionaries, ...

    Index

    Constructors

    Methods

    • Type Parameters

      • T

      Parameters

      • array: T[]
      • element: T
      • cmp: (elem1: T, elem2: T) => number
      • startIndex: number = 0
      • endIndex: number = ...

      Returns number

    • Parameters

      • array: any[]
      • object: any

      Returns boolean

    • Iterates through a dictionary and calls iterationFunction. If iterationFunction returns true the key gets stored. all stored key will finally be removed from the dictionary.

      Type Parameters

      • S
      • T
      • V

      Parameters

      • thisPointer: S
      • dict: Dictionary<T, V>
      • iterationFunction: (thisPointer: S, key: T, value: V) => boolean

      Returns void