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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    3
  • 1.0.0
    2

Package Sidebar

Install

npm i is-substring

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • luftywiranda13