• return SortedMap with sorted entries

    > const { SortedMap } = require('@oraichain/immutable');
    > SortedMap.rawPack([[k,v]]);

    Type Parameters

    • K

    • V

    Parameters

    • Optional collection: Iterable<[K, V]>
    • Optional comparator: ((a, b) => number)
        • (a, b): number
        • Parameters

          • a: K
          • b: K

          Returns number

    • Optional options: {
          btreeOrder: number;
          type: string;
      }
      • btreeOrder: number
      • type: string

    Returns SortedMap<K, V>

©2020 - 2024 Oraichain Foundation