Vanja's ramblings on tech
  • Home
  • Blog Home

functional programming

A collection of 1 post

Check if an array contains numbers succinctly
functional programming

Check if an array contains numbers succinctly

Or how to write a one-liner and still keep your code expressive. Here's that one-liner. const containsNumbers = !someArr.some(isNaN) What's going on here? First, our array uses the some method. This method

  • Vanja
    Vanja
1 min read
Vanja's ramblings on tech © 2025
Latest Posts Twitter Ghost