validate(obj)

validate for the defined rules

Parameters

  • obj - the object that needs being validated (optional)
    • object

Returns

true or false