packages/enzyme/src/selectors.js
function buildPredicateFromToken(token, root) {
  return node => token.body.every(bodyToken => nodeMatchesToken(node, bodyToken, root));
}
function buildPredicateFromToken(token, root) {
  return node => token.body.every(bodyToken => nodeMatchesToken(node, bodyToken, root));
}
function buildPredicateFromToken ( token , root ) { return node => token . body . every ( bodyToken => nodeMatchesToken ( node , bodyToken , root ) ) ; }
Returns a predicate function that checks if a
node matches every token in the body of a selector
token.
@param {Token} token
Returns a predicate function that checks if a node matches every token in the body of a selector token .