is-substring
v1.0.1
Published
Check if a string contains the given substring
Downloads
2
Maintainers
Readme
is-substring
Check if a string contains the given substring.
Installation
npm install --save is-substring
Usage
const isSubstring = require('is-substring');
isSubstring('some text', 'text');
//=> true
isSubstring('some text', 'om');
//=> true
isSubstring('some text', 'xts');
//=> false
Related
License
MIT © Lufty Wiranda