Filter an object by its keys or values. Returns a copy of an object filtered to have only keys or values that match the given glob patterns.