Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 964 Bytes

File metadata and controls

35 lines (20 loc) · 964 Bytes

ethereumjs-util / object

Module: object

Table of contents

Functions

Functions

defineProperties

Const defineProperties(self, fields, data?): void

Defines properties on a Object. It make the assumption that underlying data is binary.

deprecated

Parameters

Name Type Description
self any the Object to define properties on
fields any an array fields to define. Fields can contain: * name - the name of the properties * length - the number of bytes the field can have * allowLess - if the field can be less than the length * allowEmpty
data? any data to be validated against the definitions

Returns

void

Defined in

packages/util/src/object.ts:17