kaven-basic - v6.0.0
    Preparing search index...

    Function Distinct

    • Returns a new string containing only the distinct characters from the input string, preserving their original order of appearance.

      Parameters

      • str: string

        The input string from which to extract distinct characters.

      Returns string

      A string with duplicate characters removed.

      4.0.0

      2022-07-02

    • Returns a new array containing only the unique elements from the input array.

      Type Parameters

      • T

      Parameters

      • array: T[]

        The array from which to extract distinct elements.

      Returns T[]

      A new array with duplicate elements removed, preserving the order of first occurrence.

      4.0.0

      2022-07-02