DEV Community

Discussion on: JavaScript Katas: Well of Ideas - Easy

Collapse
 
kosich profile image
Kostia Palchyk

Okay, I'm enjoying posting weird solutions :)

const getStatusOfWellOfIdeas = a => [
    "Fail!", "Publish!", "Publish!", "I smell a series!"
  ][Math.min(3, a.join('').length - a.length * 3)]