• Creates a new object from the specified object, where all the keys are in snake-case

    Example

    const myObj = { FirstName: "Adam", "last-name": "Smith" };
    const myObjLower = snakeCaseKeys(myObj); // {first_name: "Adam", last_name: "Smith"}

    Parameters

    • obj: Record<string, unknown>

    Returns Record<string, unknown>

Generated using TypeDoc