RegExp hasIndices
Description
ThehasIndices property returnstrue if the "d" modifier is set.
Syntax
regexp.hasIndices
Return Value
| Type | Description |
|---|---|
| Boolean | Returnstrue if the "d" modifier is set, otherwisefalse. |
Browser Support
regexp.hasIndices is a JavaScript 2022 feature.
ES 2022 is supported in all modern browsers sinceMarch 2023:
| Chrome 94 | Edge 94 | Firefox 93 | Safari 16.4 | Opera 79 |
| Sep 2021 | Sep 2021 | Oct 2021 | Mar 2023 | Oct 2021 |

