Skip to main content
Module

x/structurae/sorted-array.ts>SortedArray#uniquify

Data structures for high-performance JavaScript applications.
Latest
method SortedArray.prototype.uniquify
import { SortedArray } from "https://deno.land/x/structurae@4.0.1/sorted-array.ts";

Removes duplicating elements from the array.

Examples

//=> SortedArray [ 2, 2, 3, 4, 5, 5, 9 ]; sortedArray.uniquify(); // => SortedArray [ 2, 3, 4, 5, 9 ]