Options
All
  • Public
  • Public/Protected
  • All
Menu

Module fromEntries

Index

References

Functions Array

References

Renames and re-exports fromEntries

Array Functions

  • fromEntries<T>(pairs: Entry<T>[]): {}
  • The inverse of entriesis method returns an object composed from key-value pairs.

    since

    5.10.0

    example
    fromEntries([['a', 1], ['b', 2]])
    // => { 'a': 1, 'b': 2 }

    Type parameters

    • T

    Parameters

    • pairs: Entry<T>[]

      The key-value pairs.

    Returns {}

    Returns the new object.

    • [key: string]: T