@resee-movies/utilities - v0.8.0
    Preparing search index...

    Function getRandomEntries

    • Returns a randomized selection of records from array. The length of the returned array will be either targetCount or the origin array's length, whichever is smaller.

      Type Parameters

      • T

      Parameters

      • array: T[]
      • targetCount: number = 1

      Returns T[]