Today I Learned - Rocky Kev

Tagged “clean-code”

  1. TIL a clean way to add classes based on the page in Vue

    If your pages exist in a array, use the includes() to check.

  2. TIL match expression (like switch)

    Use the match($var) method to filter the results to exactly what you want.

  3. TIL Pure and Impure Functions

    A important piece of Functional Programming is creating Pure Functions. NO SIDE EFFECTS

See all tags.