tsParticles - v0.0.0
    Preparing search index...
    • Returns a random object from the given array

      Type Parameters

      • T

      Parameters

      • array: T[]

        the array to get the object from

      • Optionalindex: number

        the index to get the object from

      • useIndex: boolean = true

        if true, the index will be used instead of a random index

      Returns T | undefined

      the item found