string-some
v1.0.1
Published
Determine if some character in a string satisfies a condition
Downloads
324
Maintainers
Readme
#string-some
Install
$ npm install string-some
Example
const some = require("string-some");
some("aBc", function(ch){return ch === ch.toUpperCase();}); // true
some("abc", function(ch){return ch === ch.toUpperCase();}); // false
some("123", isNaN); // false
some("1a3", isNaN); // true
Test
$ npm install
$ npm test