match-sorter
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "match-sorter", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Simple, expected, and deterministic best-match sorting of an array in JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -75,2 +75,11 @@ # match-sorter | ||
//this also works with **nested keys** | ||
const nestedObjList = [ | ||
{name: {first: 'Janice'}}, | ||
{name: {first: 'Fred'}}, | ||
{name: {first: 'George'}}, | ||
{name: {first: 'Jen'}}, | ||
] | ||
matchSorter(nestedObjList, 'j', {keys: ['name.first']}) // [{name: {first: 'Janice'}}, {name: {first: 'Jen'}}] | ||
// **threshold** (defaults to MATCH) | ||
@@ -77,0 +86,0 @@ const fruit = ['orange', 'apple', 'grape', 'banana'] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18613
164