packages/enzyme/src/ShallowWrapper.js
function filterWhereUnwrapped(wrapper, predicate) {
  return wrapper.wrap(wrapper.getNodesInternal().filter(predicate).filter(Boolean));
}
function filterWhereUnwrapped(wrapper, predicate) {
  return wrapper.wrap(wrapper.getNodesInternal().filter(predicate).filter(Boolean));
}
function filterWhereUnwrapped ( wrapper , predicate ) { return wrapper . wrap ( wrapper . getNodesInternal ( ) . filter ( predicate ) . filter ( Boolean ) ) ; }
Returns a new wrapper instance with only the nodes of the current wrapper instance that match
the provided predicate function.

@param {ShallowWrapper} wrapper
@param {Function} predicate
@returns {ShallowWrapper}
Returns a new wrapper instance with only the nodes of the current wrapper instance that match the provided predicate function .