Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
emojiAddresses.reduce((arr, address) =>
address.length === 1
? arr.concat(emojis[address[0]])
: arr.concat(emojis.slice(address[0], address[1] + 1)), [])
.map((emoji, i) =>