• Returns an object created by key-value entries for properties and methods

    Type Parameters

    • T = any

    Parameters

    • entries: Iterable<readonly [PropertyKey, T], any, any>

      An iterable object that contains key-value entries for properties and methods.

    Returns {
        [k: string]: T;
    }

    • [k: string]: T
  • Returns an object created by key-value entries for properties and methods

    Parameters

    • entries: Iterable<readonly any[], any, any>

      An iterable object that contains key-value entries for properties and methods.

    Returns any