Avoiding if-else Hell: The Functional Style - eviltoast
  • Lupec@lemm.ee
    link
    fedilink
    arrow-up
    4
    ·
    2 months ago

    I am not sure if JS has something similar, but this often helps by a lot

    It does, the some/every array methods would achieve the same results. I use them quite often myself!