string.prototype.has
v1.0.4
Published
Check if a string contains another string
Downloads
5
Readme
string.prototype.has
Check if a string contains another string.
Installation
# With Node Package Manager
npm i -S string.prototype.has
# With Yarn
yarn add string.prototype.has
# With Bower
bower install string.prototype.has
Examples
'hello world'.has('hello') // true
'hello world'.has('o w') // true
'hello world'.has('hword') // false
'abcdef'.has('g') // false