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.

17 lines 353 B
/** * @public * Equivalent to Object.values. * * @remarks * See {@link dictionaryValues}. */ export function dictionaryValues(d) { const keys = Object.keys(d); const l = keys.length; const a = new Array(l); for (let i = 0; i < l; ++i) { a[i] = d[keys[i]]; } return a; } //# sourceMappingURL=dictionary-values.js.map