Riddler Challenge 01: The case with the switch
The riddler did it again. He used his superior knowledge of JavaScript to create this incredible piece of code:
const riddlerChallenge01 = (items = []) => {
const options = [{ value: 'name' }];
const defaultName = items.find(val => val.isEnabled)...
codeandchaos.hashnode.dev4 min read