Function isCamel

  • Converts to camel case with type checking.

    Convert every property names of nested objects to follow the camel case convention. If the input value does not follow the type T, it returns null value instead.

    Type Parameters

    • T

      Type of the input value

    Parameters

    • input: T

      Target object

    Returns CamelCase<T> | null

    Camel case object when exact type, otherwise null

    Jeongho Nam - https://github.com/samchon

  • Converts to camel case with type checking.

    Convert every property names of nested objects to follow the camel case convention. If the input value does not follow the type T, it returns null value instead.

    Type Parameters

    • T

      Type of the input value

    Parameters

    • input: unknown

      Target object

    Returns CamelCase<T> | null

    Camel case object when exact type, otherwise null

    Jeongho Nam - https://github.com/samchon