function isGreeting(value) { return /^h(?:i|ello)$/.test(value); }
function customizer(objValue, othValue) { if (isGreeting(objValue) && isGreeting(othValue)) { return true; } }
var array = ['hello', 'goodbye']; var other = ['hi', 'goodbye'];
_.isEqualWith(array, other, customizer); // => true