RPG Event Generator v3.1.0 - v3.1.1
    Preparing search index...

    Function partition

    • Partition array into two groups based on predicate

      Type Parameters

      • T

      Parameters

      • array: T[]
      • predicate: (item: T) => boolean

      Returns [T[], T[]]