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

    Example

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

    Parameters

    • obj: Record<string, unknown>

    Returns Record<string, unknown>

Generated using TypeDoc