is-substring

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i is-substring

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • luftywiranda13