Skip to content

Endo API documentation - v0.2.0 / Exports / @endo/common / from-unique-entries

Module: from-unique-entries

Table of contents

Functions

Functions

fromUniqueEntries

fromUniqueEntries<K, V>(allEntries): Object

Throws if multiple entries use the same property name. Otherwise acts like Object.fromEntries but hardens the result. Use it to protect from property names computed from user-provided data.

Type parameters

Name
K
V

Parameters

NameType
allEntriesIterable<[K, V]>

Returns

Object

Defined in

from-unique-entries.js:15