Skip to content

Instantly share code, notes, and snippets.

@anthony2025
Created June 5, 2018 17:40
Show Gist options
  • Save anthony2025/33880769c99f320209de5077f3f38ac4 to your computer and use it in GitHub Desktop.
Save anthony2025/33880769c99f320209de5077f3f38ac4 to your computer and use it in GitHub Desktop.
export const caseInsensitiveIncludes = _.curry((str1: string, str2: string): boolean =>
!!str1.match(new RegExp(str2, 'i')));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment