Lam Pham
Apr 4, 2021

Great article.

However, I don't think using `_.indexOf ()` is a more functionnal way than declaring `findIndex`. We can say it's more imperative style, clearly right, but functionnal no. Functionnal programming is a concept about utilizing pure functions, immutability etc and `findIndex` somehow fits the requirements of such function. In my opinion, two cases use functionnal style.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Lam Pham
Lam Pham

No responses yet

Write a response