packages/enzyme/src/ShallowWrapper.js
function findWhereUnwrapped(wrapper, predicate, filter = treeFilter) {
  return wrapper.flatMap(n => filter(n.getNodeInternal(), predicate));
}
function findWhereUnwrapped(wrapper, predicate, filter = treeFilter) {
  return wrapper.flatMap(n => filter(n.getNodeInternal(), predicate));
}
function findWhereUnwrapped ( wrapper , predicate , filter = treeFilter ) { return wrapper . flatMap ( n => filter ( n . getNodeInternal ( ) , predicate ) ) ; }
Finds all nodes in the current wrapper nodes' render trees that match the provided predicate
function.

@param {ShallowWrapper} wrapper
@param {Function} predicate
@param {Function} filter
@returns {ShallowWrapper}
Finds all nodes in the current wrapper nodes render trees that match the provided predicate function .