Function isPascal

  • Converts to pascal case with type checking.

    Convert every property names of nested objects to follow the pascal 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 PascalCase<T> | null

    Pascal case object when exact type, otherwise null

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

  • Converts to pascal case with type checking.

    Convert every property names of nested objects to follow the pascal 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 PascalCase<T> | null

    Pascal case object when exact type, otherwise null

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