Transforms the keys of an object to start with a lowercase letter. Recursively processes nested objects and arrays if specified.

  • Parameters

    • obj: any

      The input object whose keys need to be uncapitalized. Can also accept arrays, dates, or non-object types.

    • Optionalrecursive: boolean = true

      Indicates whether to recursively process nested objects and arrays.

    Returns any

    A new object or array with keys uncapitalized where applicable, leaving other types unchanged.