import { ANDNode } from "./Nodes" ; import { createNodes } from "./createNodes" ; export const getPredicate = ( filter ) => { const nodes = createNodes ( filter ) ; const root = new ANDNode ( nodes ) ; return ( data ) => ( root . isPassed ( data ) ) ; } ;