Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ningen/util.ts>sorted

Simple ninja build generator
Latest
function sorted
import { sorted } from "https://deno.land/x/ningen@0.0.6/util.ts";

Returns a sorted copy of an iterable. Optionally provide a keyFn that will be used when sorting.

Parameters

input: Iterable<T>
optional
keyFn: (elem: T) => string