string-some

Determine if some character in a string satisfies a condition


Keywords
string, text, character, some, text analysis
License
MIT
Install
npm install string-some@1.0.1

Documentation

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