JavaScript, 19 bytes x=>y=>x-2|y-2?x+y:5 Try it online!
posted 3y ago by Shaggy
# JavaScript, 19 bytes <!-- language-all: lang-javascript --> x=>y=>x-2|y-2?x+y:5 [Try it online!](https://tio.run/##JczBCsIwDIDhV8lBRkOoYGGXbdleJWOuooxVNpEE9dlrxct/@A7/bXyO@7Rd7w@/pvOcI2fl3rhXH97mw6BkTZ1j2pzyqdWO65ZI8QdWwP5gOKV1T8t8XNLFKQkQHF72AQah6BSdIZUDh6qy0kGg8yCNCGL@Ag)