@alanscodelog/utils
    Preparing search index...

    Function dedupe

    • Returns an array without any duplicates (does not mutate the array by default, see mutate option).

      Type Parameters

      • T extends any[] = any[]

      Parameters

      • array: T
      • __namedParameters: { mutate?: boolean } = {}
        • Optionalmutate?: boolean

          Whether to mutate the array. Defaults to false because, counterintuitively, true might be slightly slower.

      Returns T