mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
10 lines
205 B
TypeScript
10 lines
205 B
TypeScript
import {
|
|
filter,
|
|
} from './filter';
|
|
import type {
|
|
LiqeQuery,
|
|
} from './types';
|
|
|
|
export const test = <T extends Object>(ast: LiqeQuery, subject: T) => {
|
|
return filter(ast, [subject]).length === 1;
|
|
};
|