Closed sbimochan closed 4 years ago
It looks like you're calling matchSorter
with a variable called rows
and I'm guessing that is not an array.
Can you please make a reproduction of your issue?
Screenshot is from my main problem and above code is example
Works for me match-sorter@4.0.2
, babel-compiled, Chrome.
const nestedObjList = [
{name: {first: "Janice"}},
{name: {first: null}},
{name: {first: undefined}},
{name: {first: "Jen"}},
];
const res = matchSorter(nestedObjList, "j", {keys: ["name.first"]});
log.info("sorter", res);
Finds 2 objects.
Looks like this is stale, so I'm going to close it. Good luck :)
match-sorter
version: ^4.0.2node
version: 10.4.0npm
(oryarn
) version: 6.6Relevant code or config
gives: Error:
items.reduce is not a function
What you did:I provided null/ undefined values in list
What happened:
Reproduction repository:
Problem description:
Suggested solution: