Function prune

  • Prune, erase superfluous properties.

    Remove every superfluous properties from the input object, even including nested objects. Note that, as every superfluous properties would be deleted, you never can read those superfluous properties after calling this prune() function.

    For reference, this typia.misc.prune() function does not validate the input value type. It just believes that the input value is following the type T. Therefore, if you can't ensure the input value type, it would better to call one of below functions instead.

    Type Parameters

    • T extends object

      Type of the input value

    Parameters

    • input: T

      Target instance to prune

    Returns void

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