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

    Example

    const myObj = { First_name: "Adam", "last-name": "Smith" };
    const myObjLower = camelCaseKeys(myObj); // {firstName: "Adam", lastName: "Smith"}

    Parameters

    • obj: Record<string, unknown>

    Returns Record<string, unknown>

Generated using TypeDoc