Javascript ES6 arrow function (Regex)


  • 1

    Javascript ES6 arrow function (one liner)

    var findWords = ws => ws.filter(w => /^([qwertyuiop]*|[asdfghjkl]*|[zxcvbnm]*)$/i.test(w))
    

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.