Does the JS environment support named capture groups in regexes?
Returns true
in node 10+, and equivalent engines.
var hasNamedCaptures = require('has-named-captures');
var assert = require('assert');
assert.equal(typeof hasNamedCaptures(), 'boolean', 'returns true or false');
Simply clone the repo, npm install
, and run npm test