Creates a new SortedMap from alternating keys and values
> const { SortedMap } = require('@oraichain/immutable')> let sortedMap=SortedMap.of('orange','orange', 'apple','red', 'banana','yellow');SortedMap { "apple": "red", "banana": "yellow", "orange": "orange" } Copy
> const { SortedMap } = require('@oraichain/immutable')> let sortedMap=SortedMap.of('orange','orange', 'apple','red', 'banana','yellow');SortedMap { "apple": "red", "banana": "yellow", "orange": "orange" }
Use SortedMap([ [ 'k', 'v' ] ]) or SortedMap({ k: 'v' })
Rest
©2020 - 2024 Oraichain Foundation
Creates a new SortedMap from alternating keys and values
Deprecated
Use SortedMap([ [ 'k', 'v' ] ]) or SortedMap({ k: 'v' })