Skip to content
Subhajit Sahu edited this page May 5, 2020 · 1 revision

Check if all characters pass the test, like Array.every().

const every = require('@extra-string/every');
// every(<string>, <testFn>, <thisArg>)

every('badf00d', (v) => v<='f');
// true
every('g00df00d', (v) => v<='f');
// false
every('', (v) => v<='f');
// true

extra-string

Clone this wiki locally