import { ensureSearchExpressionGroupArray } from './group' ; import { Search } from './types' ; export function narrow ( a , b ) { if ( ! a ) { return b ; } let arrs = [ a , b ] . map ( ensureSearchExpressionGroupArray ) ; let [ arrA , arrB ] = arrs ; arrB [ 0 ] . clause = '&&' ; return arrA . concat ( arrB ) ; }