Created
June 5, 2018 17:40
-
-
Save anthony2025/33880769c99f320209de5077f3f38ac4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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