RunKit + npm: npm

node v10.24.1
endpointsharetweet
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…