Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • matchCondition(obj: object, query: string): boolean
  • Matches an object with the conditions expressed in the query.

    throws

    SyntaxError This exception is thrown when there was an error parsing the query.

    throws

    GrammarError This exception is thrown when the sequence of expressions is invalid.

    throws

    ObjectKeyNotFoundError This exception is thrown when the fields targetted in the query were not found in the given object.

    Parameters

    • obj: object

      The object to be validated

    • query: string

      The expression of the conditions

    Returns boolean

    if object matches the expression

Generated using TypeDoc