Skip to content

Object.entries({ a: 42 }) returns [string, unknown][] #2

@matzkoh

Description

@matzkoh

In the typescript lib, the union type of values simply becomes the new value type.

entries<T>(o: { [s: string]: T } | ArrayLike<T>): [string, T][];

Compared to the above, the implementation of this lib is a bit more complex.

Please let me know if I've missed something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions