@bytebury/sauce - v1.4.0
    Preparing search index...

    Function distinct

    • Returns the distinct values from a list.

      Type Parameters

      • T

      Parameters

      • list: T[]

      Returns T[]

      alias for unique.

      const myList = [1, 2, 3, 3];
      distinct(myList); // [1, 2, 3];