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

    Function unique

    • Returns the distinct values from a list.

      Type Parameters

      • T

      Parameters

      • list: T[]

      Returns T[]

      same as distinct.

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