facebook / facebook/flow

RegExp.prototype.exec returns `any`

Open
#4,099 0 comments 4 reactions 0 assignees View on GitHub
Library definitions
Dominant language
Rust
Stars
22.3k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

Currently, RegExp.prototype.exec returns `any`, which disables all checks.

At least it should be the same as String.prototype.match, that is `?Array` currently but could be changed in https://github.com/facebook/flow/issues/3554.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.