• 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" }

    Deprecated

    Use SortedMap([ [ 'k', 'v' ] ]) or SortedMap({ k: 'v' })

    Parameters

    • Rest ...keyValues: any[]

    Returns SortedMap<any, any>

©2020 - 2024 Oraichain Foundation