/**
 * Normalizes a search value.
 *
 * @param {string|number|null|undefined} value
 *   The raw value.
 *
 * @return {string}
 *   The normalized searchable value.
 */
export default function normalizeSearchValue(value) {
  return String(value ?? "")
    .trim()
    .toLowerCase();
}
