Détail du package

string-some

darren-lester143MIT1.0.1

Determine if some character in a string satisfies a condition

string, text, character, some

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