1.0.1 • Published 6 years ago

includes-any v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

Includes Any

Finds out if a string contain any or all of given strings.

Installation

npm i includes-any

Usage

const stri = require('includes-any');
stri.includesAny('hello world', 'hello', 'e', 'windows', 'ubuntu'); //Returns true
stri.includesAny('hello world', 'apple', 'orange', 'windows', 'ubuntu'); //Returns false
stri.includesAll('hello world', 'hello', 'world', 'e', 'w'); //Returns true
stri.includesAll('hello world', 'bye', 'world', 'e', 'w'); //Returns false

Contributing

Pull requests are welcome.

License

MIT