Check if one of two strings contains the other
npm install --save string-contains-string
import stringContainsString from 'string-contains-string'
stringContainsString('hello', 'world')
// => false
stringContainsString('hello', 'ell')
// => true
stringContainsString('ell', 'hello')
// => true
Returns a boolean
if str1
contains str2
or str2
contains str1
.
type: string
A string to test.
type: string
Another string to test.
MIT © Dustin Specker