The candidates that start with needle, or -- if none do -- those that contain it as a subsequence (case-insensitive). needle itself is never returned.
candidates
needle
The
candidatesthat start withneedle, or -- if none do -- those that contain it as a subsequence (case-insensitive).needleitself is never returned.