question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Combine value selector function with min/maxRanking?

See original GitHub issue

I’m not a JS dev, I’m just trying to create bindings for this library for use in F# with Fable. Looking at the docs and the current master branch, it doesn’t seem possible to use the value selector function along with minRanking and maxRanking. Is that intended?

With the value selector function, I am talking about this:

matchSorter(list, 'j', {keys: [item => item.name]})

It would be great if this could be combined with setting minRanking and maxRanking.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ChrisRucommented, Jan 9, 2019

You can pass an object inside the keys array. Here in you can set minRanking along with key. See here an example of this: https://runkit.com/embed/5iynukr92n7k Does this help?

0reactions
kentcdoddscommented, Jan 10, 2019

Moving discussion to that issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Need PR help on match-sorter · Issue #32038 - GitHub
Issue 2: In MinRanking , MaxRanking , and MinMaxRanking (or the single unified one ... Combine value selector function with min/maxRanking?
Read more >
How to combine two dynamic selectors to a new selector?
You can compose selectors. @Selector([MyStateOne.getAll, MyStateTwo.getAll]) static getCombinedData(). You can see an live example of NGXS ...
Read more >
Deriving Data with Selectors - Redux
A "selector function" is any function that accepts the Redux store ... word select combined with a description of the value being selected....
Read more >
DataWeave Selectors - MuleSoft Documentation
DataWeave selectors traverse the structures of objects and arrays and return matching values. ... For a simple example, see Single-Value Selector.
Read more >
Altair HyperMesh 2021.2 Release Notes - Documentation
For example, the default value for thickness may be set to 5.0. ... While typing, the selection search function provides live suggestions of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found