is-subchars

0.0.1 • Public • Published

is-subchars

Predicate that returns true if all characters are found in provided string.

Install

npm install is-subchars
bower install is-subchars

Usage

const isSubchars = require('is-subchars');

console.log(isSubchars(`who`, `hello world`)); // true
console.log(isSubchars(`foo`, `hello world`)); // false
console.log(isSubchars(`I will kill you.`, `I really like you, I'll do what you said.`)); // true

Test

npm test

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i is-subchars

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • miguelmota