0.0.1 • Published 9 years ago
is-subchars v0.0.1
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
0.0.1
9 years ago