Last updated 4 years ago
Was this helpful?
const cannonsReady = (gunners) => Object.entries(gunners) .some((e) => e[1] === 'nay') ? 'Shiver me timbers!' : 'Fire!';