0.0.26 • Published 5 years ago
@extra-regexp/is v0.0.26
Produces accumulating values. :running: :package: :ledger:
Similar: map, filter, reduce, accumulate. This is part of package extra-regexp.
iterable.accumulate(x, fn, [acc]);
// x: an iterable
// fn: reduce function (acc, v, i, x)
// acc: initial value
const regexp = require('extra-regexp');
regexp.is(/[A-Z]/);
// true
regexp.is(0);
// false