Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: npm
node v10.24.1
endpoint
share
tweet
var matchSorter = require("match-sorter") const tea = [ {tea: 'Milk', alias: {name: 'moo'}}, {tea: 'Oolong', alias: {name: 'B'}}, {tea: 'Green', alias: {name: 'C'}}, ] matchSorter(tea, 'oo', { keys: [item => item.tea, {minRanking: matchSorter.rankings.EQUAL, key: item => item.alias.name}], })
Created from: https://npm.runkit.com/npm
Loading…
Clone and edit this document