Function isSnake

  • Converts to snake case with type checking.

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

    Snake case object when exact type, otherwise null

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

  • Converts to snake case with type checking.

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

    Snake case object when exact type, otherwise null

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