Clarify that RegExp.prototype.exec() returns a special array

NEW
Unassigned

Status

defect
3 years ago
3 years ago

People

(Reporter: sebo, Unassigned)

Tracking

Details

According to the spec.[1] RegExp.prototype.exec() returns an array of the match and the captured groups. This array gets two properties appended, which are called 'index' and 'input'.

Those two properties are not mentioned on MDN yet, so they need to be added.

Sebastian

[1] http://www.ecma-international.org/ecma-262/6.0/#sec-regexpbuiltinexec
You need to log in before you can comment on or make changes to this bug.