SortedSet.fromKeys() creates a new immutable SortedSet containing the keys from this Collection or JavaScript Object.
SortedSet.fromKeys()
SortedSet
> const { SortedMap, Map } = require('@oraichain/immutable');> let map=Map({x:'X', c:'B', m:'M', anylabel:'K', f:'F'});> let sortedSet=SortedSet.fromKeys(map);SortedSet { "anylabel", "c", "f", "m", "x" }> sortedSet=SortedSet.fromKeys({x:'X', c:'B', m:'M', anylabel:'K', f:'F'});SortedSet { "anylabel", "c", "f", "m", "x" } Copy
> const { SortedMap, Map } = require('@oraichain/immutable');> let map=Map({x:'X', c:'B', m:'M', anylabel:'K', f:'F'});> let sortedSet=SortedSet.fromKeys(map);SortedSet { "anylabel", "c", "f", "m", "x" }> sortedSet=SortedSet.fromKeys({x:'X', c:'B', m:'M', anylabel:'K', f:'F'});SortedSet { "anylabel", "c", "f", "m", "x" }
©2020 - 2024 Oraichain Foundation
SortedSet.fromKeys()
creates a new immutableSortedSet
containing the keys from this Collection or JavaScript Object.