참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.A Result is a sub-class of Array, which allows accessing any of its values either positionally by its index or, if keys are provided by its name.
Extends
Array
<any
>
Methods
getValue()
name
.
Since it is possible to have a key whose name conflicts with a method on a Result or its
superclass Array, or any JavaScript keyword, this ensures all named values are still accessible by name.
Parameters
Parameter | Type | Description |
---|---|---|
name | string | The name of the value to retrieve. |
Returns
any
The value for name
.
Source
abi/coders/abstract-coder.ts:270toArray()
Returns
any
[]
Source
abi/coders/abstract-coder.ts:149toObject()
Returns
Record
<string
, any
>
Source
abi/coders/abstract-coder.ts:165fromItems()
items
with each entry also accessible by its corresponding name in
keys
.
Parameters
Parameter | Type | Description |
---|---|---|
items | any [] | The items to include in the Result. |
keys ? | (null | string )[] | The names for each item in items . |
Returns
Result
The new Result.