RegExp hasIndices
Description
The hasIndices property returns true if the "d" modifier is set.
Syntax
regexp.hasIndices
Return Value
| Type | Description |
|---|---|
| Boolean | Returns true if the "d" modifier is set, otherwise false. |
Browser Support
regexp.hasIndices is a JavaScript 2022 feature.
ES 2022 is supported in all modern browsers since March 2023:
| Chrome 94 |
Edge 94 |
Firefox 93 |
Safari 16.4 |
Opera 79 |
| Sep 2021 | Sep 2021 | Oct 2021 | Mar 2023 | Oct 2021 |