misc Latest (v1.1.4)

from_items

Returns an object from the provided array of key value pairs.

from_items(arg: array[any]) -> object

Description

Returns an object from the provided array of key value pairs. This function is the inversed of the items() function.

Arguments

Required

Name Type Description
arg array[any]

Returns

Type: object

Examples

search(from_items(@), [["one",1],["two",2]]) → {"one":1,"two":2}
search(from_items(@), [["one",1],["two",2],["one",3]]) → {"one":3,"two":2}