@mocanvas/editor · function
declare function uniq<T>(array: Iterable<T>): T[]The distinct values of array, in first-seen order.
Order matters at the call sites this exists for — the list of fonts a page
needs, the parents shapes were dropped onto — so this is not a Set round
trip written the short way.
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.