diff --git a/src/pico.ts b/src/pico.ts index b999358..d698986 100644 --- a/src/pico.ts +++ b/src/pico.ts @@ -32,7 +32,7 @@ export function picoSearch( keys: Keys, config: { threshold: number } ): T[] { - if (!searchTerm) { + if (!searchTerm || typeof searchTerm !== "string") { return objectsArray; }