Check whether or not the "i" modifier is set:
The result of res will be:
The ignoreCase property specifies whether or not the "i" modifier is set.
This property returns true if the "i" modifier is set, otherwise it returns false.
The ignoreCase property is supported in all major browsers.
Type | Description |
---|---|
Boolean | Returns true if the "i" modifier is set, false otherwise |
JavaScript Version: | 1.2 |
---|