Skip to main content
100%

Gist a51f9f38b3cbd9d5116fbeff931b7d14

✓ Published0🌍 Public
66ewis
Last edited Apr 29, 2016
Created on Apr 29, 2016

This example demonstrates a client-lookup autocomplete filter, matching typed input against billing records by client name or number. It uses Ramda’s `R.filter`, `R.reduce`, and `R.curry` to build a reusable predicate that compares a trimmed, lowercased query against the first characters of each field. The code includes a concise Ramda-based solution, a plain JavaScript variant using `Array.filter` and `String.slice`, and a commented alternative with `R.either`. The data is a hardcoded array of client objects with address fields, sourced from a gist.

AI-generated description

Similar vizzes