If you're going ES6, why not just:
import {solve} from 'logic'
solve((x,y) => x === "mcbob" && y === "bob" || x === "bob" && y === "bill");