Returns a function that checks if key/value pairs of x match all pairs in spec

  • Parameters

    • values: Record<string, any>

    Returns (x: Record<string, any>) => boolean