Skip to content
#

extras

Here are 25 public repositories matching this topic...

ramda-adjunct
char0n
char0n commented Mar 14, 2020

Is your feature request related to a problem? Please describe.

R.filter doesn't expose index to the predicate function. Let's create a function that does and call it filterIndexed.

Describe the solution you'd like

filterIndexed((v, idx) => idx === 0, [1, 2, 3); // => [1]

Possible implementation

const filterIndexed = R.addInd

Improve this page

Add a description, image, and links to the extras topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the extras topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.