Function entries

  • Example

    import * as P from "flurp/pojo";

    const getEntries = P.entries("x");
    getEntries({x: 5, y: 10}); // [["x", 5], ["y", 10]]

    Type Parameters

    • T extends Readonly<Record<string, unknown>>

    Parameters

    • obj: T

    Returns [string, unknown][]