Skip to content

Commit

Permalink
Removed outperformed features HTMLDOCUMENT and OBJECT_W_CTOR
Browse files Browse the repository at this point in the history
  • Loading branch information
fasttime committed Aug 4, 2024
1 parent 489741c commit ff4bf2a
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 135 deletions.
17 changes: 5 additions & 12 deletions Features.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This table lists features available in the most common engines.
<td>Chrome 122+, Edge 122+, Opera 108+</td>
<td>
<ul>
<li><a href="api-doc/interfaces/FeatureAll.md#ANY_DOCUMENT"><code>ANY_DOCUMENT</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#HTMLDOCUMENT"><code>HTMLDOCUMENT</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#ANY_DOCUMENT"><code>ANY_DOCUMENT</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#ANY_WINDOW"><code>ANY_WINDOW</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#WINDOW"><code>WINDOW</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#ARRAY_ITERATOR"><code>ARRAY_ITERATOR</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#NO_OLD_SAFARI_ARRAY_ITERATOR"><code>NO_OLD_SAFARI_ARRAY_ITERATOR</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#ARROW"><code>ARROW</code></a>
Expand All @@ -29,7 +29,6 @@ This table lists features available in the most common engines.
<li><a href="api-doc/interfaces/FeatureAll.md#GLOBAL_UNDEFINED"><code>GLOBAL_UNDEFINED</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#GMT"><code>GMT</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#HISTORY"><code>HISTORY</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#HTMLDOCUMENT"><code>HTMLDOCUMENT</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#INCR_CHAR"><code>INCR_CHAR</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#INTL"><code>INTL</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#ITERATOR_HELPER"><code>ITERATOR_HELPER</code></a>
Expand All @@ -56,7 +55,7 @@ This table lists features available in the most common engines.
<td>Firefox 90+</td>
<td>
<ul>
<li><a href="api-doc/interfaces/FeatureAll.md#ANY_DOCUMENT"><code>ANY_DOCUMENT</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#HTMLDOCUMENT"><code>HTMLDOCUMENT</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#ANY_DOCUMENT"><code>ANY_DOCUMENT</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#ANY_WINDOW"><code>ANY_WINDOW</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#WINDOW"><code>WINDOW</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#ARRAY_ITERATOR"><code>ARRAY_ITERATOR</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#NO_OLD_SAFARI_ARRAY_ITERATOR"><code>NO_OLD_SAFARI_ARRAY_ITERATOR</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#ARROW"><code>ARROW</code></a>
Expand All @@ -77,7 +76,6 @@ This table lists features available in the most common engines.
<li><a href="api-doc/interfaces/FeatureAll.md#GLOBAL_UNDEFINED"><code>GLOBAL_UNDEFINED</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#GMT"><code>GMT</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#HISTORY"><code>HISTORY</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#HTMLDOCUMENT"><code>HTMLDOCUMENT</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#INCR_CHAR"><code>INCR_CHAR</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#INTL"><code>INTL</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#JAPANESE_INFINITY"><code>JAPANESE_INFINITY</code></a>
Expand All @@ -104,7 +102,7 @@ This table lists features available in the most common engines.
<td>Internet Explorer 9+</td>
<td>
<ul>
<li><a href="api-doc/interfaces/FeatureAll.md#ANY_DOCUMENT"><code>ANY_DOCUMENT</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#DOCUMENT"><code>DOCUMENT</code></a> and <a href="api-doc/interfaces/FeatureAll.md#HTMLDOCUMENT"><code>HTMLDOCUMENT</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#ANY_DOCUMENT"><code>ANY_DOCUMENT</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#DOCUMENT"><code>DOCUMENT</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#ANY_WINDOW"><code>ANY_WINDOW</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#WINDOW"><code>WINDOW</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#ATOB"><code>ATOB</code></a> (Internet Explorer 10+)
<li><a href="api-doc/interfaces/FeatureAll.md#CAPITAL_HTML"><code>CAPITAL_HTML</code></a>
Expand All @@ -116,7 +114,6 @@ This table lists features available in the most common engines.
<li><a href="api-doc/interfaces/FeatureAll.md#GENERIC_ARRAY_TO_STRING"><code>GENERIC_ARRAY_TO_STRING</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#GMT"><code>GMT</code></a> (Internet Explorer 11)
<li><a href="api-doc/interfaces/FeatureAll.md#HISTORY"><code>HISTORY</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#HTMLDOCUMENT"><code>HTMLDOCUMENT</code></a> (Internet Explorer 11)
<li><a href="api-doc/interfaces/FeatureAll.md#IE_SRC"><code>IE_SRC</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#INCR_CHAR"><code>INCR_CHAR</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#INTL"><code>INTL</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#PLAIN_INTL"><code>PLAIN_INTL</code></a>; Internet Explorer 11)
Expand All @@ -128,7 +125,6 @@ This table lists features available in the most common engines.
<li><a href="api-doc/interfaces/FeatureAll.md#NO_V8_SRC"><code>NO_V8_SRC</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#IE_SRC"><code>IE_SRC</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#OBJECT_L_LOCATION_CTOR"><code>OBJECT_L_LOCATION_CTOR</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#OBJECT_UNDEFINED"><code>OBJECT_UNDEFINED</code></a> (Internet Explorer 10+)
<li><a href="api-doc/interfaces/FeatureAll.md#OBJECT_W_CTOR"><code>OBJECT_W_CTOR</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#PLAIN_INTL"><code>PLAIN_INTL</code></a> (Internet Explorer 11)
<li><a href="api-doc/interfaces/FeatureAll.md#SELF_OBJ"><code>SELF_OBJ</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#ANY_WINDOW"><code>ANY_WINDOW</code></a> and <a href="api-doc/interfaces/FeatureAll.md#WINDOW"><code>WINDOW</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#SHORT_LOCALES"><code>SHORT_LOCALES</code></a> (Internet Explorer 11)
Expand All @@ -142,7 +138,7 @@ This table lists features available in the most common engines.
<td>Safari 7.0+</td>
<td>
<ul>
<li><a href="api-doc/interfaces/FeatureAll.md#ANY_DOCUMENT"><code>ANY_DOCUMENT</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#HTMLDOCUMENT"><code>HTMLDOCUMENT</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#ANY_DOCUMENT"><code>ANY_DOCUMENT</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#ANY_WINDOW"><code>ANY_WINDOW</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#WINDOW"><code>WINDOW</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#ARRAY_ITERATOR"><code>ARRAY_ITERATOR</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#NO_OLD_SAFARI_ARRAY_ITERATOR"><code>NO_OLD_SAFARI_ARRAY_ITERATOR</code></a>; Safari 7.1+)
<li><a href="api-doc/interfaces/FeatureAll.md#ARROW"><code>ARROW</code></a> (Safari 10.0+)
Expand All @@ -165,7 +161,6 @@ This table lists features available in the most common engines.
<li><a href="api-doc/interfaces/FeatureAll.md#GLOBAL_UNDEFINED"><code>GLOBAL_UNDEFINED</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#GMT"><code>GMT</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#HISTORY"><code>HISTORY</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#HTMLDOCUMENT"><code>HTMLDOCUMENT</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#INCR_CHAR"><code>INCR_CHAR</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#INTL"><code>INTL</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#PLAIN_INTL"><code>PLAIN_INTL</code></a>; Safari 10.0+)
<li><a href="api-doc/interfaces/FeatureAll.md#JAPANESE_INFINITY"><code>JAPANESE_INFINITY</code></a> (Safari 10.0+)
Expand All @@ -181,7 +176,6 @@ This table lists features available in the most common engines.
<li><a href="api-doc/interfaces/FeatureAll.md#OBJECT_ARRAY_ENTRIES_CTOR"><code>OBJECT_ARRAY_ENTRIES_CTOR</code></a> (Safari 9+)
<li><a href="api-doc/interfaces/FeatureAll.md#OBJECT_L_LOCATION_CTOR"><code>OBJECT_L_LOCATION_CTOR</code></a> (not in Safari 10.0+)
<li><a href="api-doc/interfaces/FeatureAll.md#OBJECT_UNDEFINED"><code>OBJECT_UNDEFINED</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#GLOBAL_UNDEFINED"><code>GLOBAL_UNDEFINED</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#OBJECT_W_CTOR"><code>OBJECT_W_CTOR</code></a> (not in Safari 10.0+)
<li><a href="api-doc/interfaces/FeatureAll.md#OLD_SAFARI_LOCATION_CTOR"><code>OLD_SAFARI_LOCATION_CTOR</code></a> (not in Safari 10.0+)
<li><a href="api-doc/interfaces/FeatureAll.md#PLAIN_INTL"><code>PLAIN_INTL</code></a> (Safari 10.0+, not in Safari 14.0.1+)
<li><a href="api-doc/interfaces/FeatureAll.md#REGEXP_STRING_ITERATOR"><code>REGEXP_STRING_ITERATOR</code></a> (Safari 13+)
Expand All @@ -197,7 +191,7 @@ This table lists features available in the most common engines.
<td>Android Browser 4.0+</td>
<td>
<ul>
<li><a href="api-doc/interfaces/FeatureAll.md#ANY_DOCUMENT"><code>ANY_DOCUMENT</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#HTMLDOCUMENT"><code>HTMLDOCUMENT</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#ANY_DOCUMENT"><code>ANY_DOCUMENT</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#ANY_WINDOW"><code>ANY_WINDOW</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#DOMWINDOW"><code>DOMWINDOW</code></a> and <a href="api-doc/interfaces/FeatureAll.md#WINDOW"><code>WINDOW</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#ATOB"><code>ATOB</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#BARPROP"><code>BARPROP</code></a> (Android Browser 4.4)
Expand All @@ -210,7 +204,6 @@ This table lists features available in the most common engines.
<li><a href="api-doc/interfaces/FeatureAll.md#GMT"><code>GMT</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#HISTORY"><code>HISTORY</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#HTMLAUDIOELEMENT"><code>HTMLAUDIOELEMENT</code></a> (Android Browser 4.4)
<li><a href="api-doc/interfaces/FeatureAll.md#HTMLDOCUMENT"><code>HTMLDOCUMENT</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#INCR_CHAR"><code>INCR_CHAR</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#INTL"><code>INTL</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#PLAIN_INTL"><code>PLAIN_INTL</code></a>; Android Browser 4.4)
<li><a href="api-doc/interfaces/FeatureAll.md#JAPANESE_INFINITY"><code>JAPANESE_INFINITY</code></a> (Android Browser 4.4)
Expand Down
24 changes: 0 additions & 24 deletions api-doc/interfaces/FeatureAll.md
Original file line number Diff line number Diff line change
Expand Up @@ -494,18 +494,6 @@ Available in Android Browser 4.4. This feature is not available inside web worke

***

### HTMLDOCUMENT

> **HTMLDOCUMENT**: [`ElementaryFeature`](ElementaryFeature.md)
Existence of the global object document having the string representation "\[object HTMLDocument\]".

#### Remarks

Available in Chrome, Edge, Firefox, Internet Explorer 11, Safari, Opera, and Android Browser. This feature is not available inside web workers.

***

### IE\_10

> **IE\_10**: [`PredefinedFeature`](PredefinedFeature.md)
Expand Down Expand Up @@ -866,18 +854,6 @@ Available in Chrome, Edge, Firefox, Internet Explorer 10+, Safari, Opera, Androi

***

### OBJECT\_W\_CTOR

> **OBJECT\_W\_CTOR**: [`ElementaryFeature`](ElementaryFeature.md)
The property that the string representation of the global object constructor starts with "\[object W".

#### Remarks

Available in Internet Explorer and Safari before 10.0. This feature is not available inside web workers in Safari before 10.0.

***

### OLD\_SAFARI\_LOCATION\_CTOR

> **OLD\_SAFARI\_LOCATION\_CTOR**: [`ElementaryFeature`](ElementaryFeature.md)
Expand Down
38 changes: 3 additions & 35 deletions api-doc/interfaces/FeatureConstructor.md
Original file line number Diff line number Diff line change
Expand Up @@ -776,22 +776,6 @@ Available in Android Browser 4.4. This feature is not available inside web worke

***

### HTMLDOCUMENT

> **HTMLDOCUMENT**: [`ElementaryFeature`](ElementaryFeature.md)
Existence of the global object document having the string representation "\[object HTMLDocument\]".

#### Remarks

Available in Chrome, Edge, Firefox, Internet Explorer 11, Safari, Opera, and Android Browser. This feature is not available inside web workers.

#### Inherited from

[`FeatureAll`](FeatureAll.md).[`HTMLDOCUMENT`](FeatureAll.md#htmldocument)

***

### IE\_10

> **IE\_10**: [`PredefinedFeature`](PredefinedFeature.md)
Expand Down Expand Up @@ -1292,22 +1276,6 @@ Available in Chrome, Edge, Firefox, Internet Explorer 10+, Safari, Opera, Androi

***

### OBJECT\_W\_CTOR

> **OBJECT\_W\_CTOR**: [`ElementaryFeature`](ElementaryFeature.md)
The property that the string representation of the global object constructor starts with "\[object W".

#### Remarks

Available in Internet Explorer and Safari before 10.0. This feature is not available inside web workers in Safari before 10.0.

#### Inherited from

[`FeatureAll`](FeatureAll.md).[`OBJECT_W_CTOR`](FeatureAll.md#object_w_ctor)

***

### OLD\_SAFARI\_LOCATION\_CTOR

> **OLD\_SAFARI\_LOCATION\_CTOR**: [`ElementaryFeature`](ElementaryFeature.md)
Expand Down Expand Up @@ -1703,11 +1671,11 @@ This will create a new feature object equivalent to [`NAME`](FeatureAll.md#name)
const newFeature = JScrewIt.Feature.commonOf(["ATOB", "NAME"], ["NAME", "SELF"]);
```

This will create a new feature object equivalent to [FeatureConstructor.ANY_DOCUMENT | `ANY_DOCUMENT`](FeatureAll.md#any_document).
This is because both [`HTMLDOCUMENT`](FeatureAll.md#htmldocument) and [`DOCUMENT`](FeatureConstructor.md#document) imply [FeatureConstructor.ANY_DOCUMENT | `ANY_DOCUMENT`](FeatureAll.md#any_document).
This will create a new feature object equivalent to [FeatureConstructor.ANY_WINDOW | `ANY_WINDOW`](FeatureAll.md#any_window).
This is because both [`DOMWINDOW`](FeatureAll.md#domwindow) and [`WINDOW`](FeatureConstructor.md#window) imply [FeatureConstructor.ANY_WINDOW | `ANY_WINDOW`](FeatureAll.md#any_window).

```js
const newFeature = JScrewIt.Feature.commonOf("HTMLDOCUMENT", "DOCUMENT");
const newFeature = JScrewIt.Feature.commonOf("DOMWINDOW", "WINDOW");
```

***
Expand Down
2 changes: 1 addition & 1 deletion api-doc/type-aliases/ElementaryFeatureName.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

# Type Alias: ElementaryFeatureName

> **ElementaryFeatureName**: `"ANY_DOCUMENT"` \| `"ANY_WINDOW"` \| `"ARRAY_ITERATOR"` \| `"ARROW"` \| `"ASYNC_FUNCTION"` \| `"AT"` \| `"ATOB"` \| `"BARPROP"` \| `"CAPITAL_HTML"` \| `"CONSOLE"` \| `"DOCUMENT"` \| `"DOMWINDOW"` \| `"ESC_HTML_ALL"` \| `"ESC_HTML_QUOT"` \| `"ESC_HTML_QUOT_ONLY"` \| `"ESC_REGEXP_LF"` \| `"ESC_REGEXP_SLASH"` \| `"FF_SRC"` \| `"FILL"` \| `"FLAT"` \| `"FROM_CODE_POINT"` \| `"FUNCTION_19_LF"` \| `"FUNCTION_22_LF"` \| `"GENERIC_ARRAY_TO_STRING"` \| `"GLOBAL_UNDEFINED"` \| `"GMT"` \| `"HISTORY"` \| `"HTMLAUDIOELEMENT"` \| `"HTMLDOCUMENT"` \| `"IE_SRC"` \| `"INCR_CHAR"` \| `"INTL"` \| `"ITERATOR_HELPER"` \| `"JAPANESE_INFINITY"` \| `"LOCALE_INFINITY"` \| `"LOCALE_NUMERALS"` \| `"LOCALE_NUMERALS_EXT"` \| `"LOCATION"` \| `"NAME"` \| `"NODECONSTRUCTOR"` \| `"NO_FF_SRC"` \| `"NO_IE_SRC"` \| `"NO_OLD_SAFARI_ARRAY_ITERATOR"` \| `"NO_V8_SRC"` \| `"OBJECT_ARRAY_ENTRIES_CTOR"` \| `"OBJECT_L_LOCATION_CTOR"` \| `"OBJECT_UNDEFINED"` \| `"OBJECT_W_CTOR"` \| `"OLD_SAFARI_LOCATION_CTOR"` \| `"PLAIN_INTL"` \| `"REGEXP_STRING_ITERATOR"` \| `"SELF_OBJ"` \| `"SHORT_LOCALES"` \| `"STATUS"` \| `"UNDEFINED"` \| `"V8_SRC"` \| `"WINDOW"`
> **ElementaryFeatureName**: `"ANY_DOCUMENT"` \| `"ANY_WINDOW"` \| `"ARRAY_ITERATOR"` \| `"ARROW"` \| `"ASYNC_FUNCTION"` \| `"AT"` \| `"ATOB"` \| `"BARPROP"` \| `"CAPITAL_HTML"` \| `"CONSOLE"` \| `"DOCUMENT"` \| `"DOMWINDOW"` \| `"ESC_HTML_ALL"` \| `"ESC_HTML_QUOT"` \| `"ESC_HTML_QUOT_ONLY"` \| `"ESC_REGEXP_LF"` \| `"ESC_REGEXP_SLASH"` \| `"FF_SRC"` \| `"FILL"` \| `"FLAT"` \| `"FROM_CODE_POINT"` \| `"FUNCTION_19_LF"` \| `"FUNCTION_22_LF"` \| `"GENERIC_ARRAY_TO_STRING"` \| `"GLOBAL_UNDEFINED"` \| `"GMT"` \| `"HISTORY"` \| `"HTMLAUDIOELEMENT"` \| `"IE_SRC"` \| `"INCR_CHAR"` \| `"INTL"` \| `"ITERATOR_HELPER"` \| `"JAPANESE_INFINITY"` \| `"LOCALE_INFINITY"` \| `"LOCALE_NUMERALS"` \| `"LOCALE_NUMERALS_EXT"` \| `"LOCATION"` \| `"NAME"` \| `"NODECONSTRUCTOR"` \| `"NO_FF_SRC"` \| `"NO_IE_SRC"` \| `"NO_OLD_SAFARI_ARRAY_ITERATOR"` \| `"NO_V8_SRC"` \| `"OBJECT_ARRAY_ENTRIES_CTOR"` \| `"OBJECT_L_LOCATION_CTOR"` \| `"OBJECT_UNDEFINED"` \| `"OLD_SAFARI_LOCATION_CTOR"` \| `"PLAIN_INTL"` \| `"REGEXP_STRING_ITERATOR"` \| `"SELF_OBJ"` \| `"SHORT_LOCALES"` \| `"STATUS"` \| `"UNDEFINED"` \| `"V8_SRC"` \| `"WINDOW"`

Name of an elementary feature.
3 changes: 1 addition & 2 deletions dev/make-feature-doc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ export default
componentEntry += ' (';
if (impliers)
{
const featureNameList =
AND_FORMATTER.format(impliers.map(formatFeatureName));
const featureNameList = AND_FORMATTER.format(impliers.map(formatFeatureName));
componentEntry += `implied by ${featureNameList}`;
if (versioning)
componentEntry += '; ';
Expand Down
12 changes: 6 additions & 6 deletions lib/feature.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,14 +261,14 @@ export interface FeatureConstructor extends FeatureAll
* const newFeature = JScrewIt.Feature.commonOf(["ATOB", "NAME"], ["NAME", "SELF"]);
* ```
*
* This will create a new feature object equivalent to {@link FeatureConstructor.ANY_DOCUMENT |
* `ANY_DOCUMENT`}.
* This is because both {@link FeatureConstructor.HTMLDOCUMENT | `HTMLDOCUMENT`} and {@link
* FeatureConstructor.DOCUMENT | `DOCUMENT`} imply {@link FeatureConstructor.ANY_DOCUMENT |
* `ANY_DOCUMENT`}.
* This will create a new feature object equivalent to {@link FeatureConstructor.ANY_WINDOW |
* `ANY_WINDOW`}.
* This is because both {@link FeatureConstructor.DOMWINDOW | `DOMWINDOW`} and {@link
* FeatureConstructor.WINDOW | `WINDOW`} imply {@link FeatureConstructor.ANY_WINDOW |
* `ANY_WINDOW`}.
*
* ```js
* const newFeature = JScrewIt.Feature.commonOf("HTMLDOCUMENT", "DOCUMENT");
* const newFeature = JScrewIt.Feature.commonOf("DOMWINDOW", "WINDOW");
* ```
*/
commonOf(...features: FeatureElementOrCompatibleArray[]): CustomFeature | null;
Expand Down
Loading

0 comments on commit ff4bf2a

Please sign in to comment.