1.0.1 • Published 7 years ago

is-substring v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

is-substring

npm Travis branch npm

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