The RegExp hasIndices Property
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 an ES2022 feature.
JavaScript 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 |