UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

13 lines 258 B
/** * @public * Converts a set into an array of its values. * * @returns The values of the set. * * @remarks * See {@link setValuesToArray}. */ export function setValuesToArray<TItem>(set: Set<TItem>): TItem[] { return Array.from(set.values()); }