Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: KeyboardLayoutMap.keys/values/entries should have methods type #29957

Merged
merged 19 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion files/en-us/web/api/keyboardlayoutmap/entries/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "KeyboardLayoutMap: entries property"
short-title: entries
slug: Web/API/KeyboardLayoutMap/entries
page-type: web-api-instance-property
page-type: web-api-instance-method
status:
- experimental
browser-compat: api.KeyboardLayoutMap.entries
Expand Down
14 changes: 7 additions & 7 deletions files/en-us/web/api/keyboardlayoutmap/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ A list of valid keys is found in the [UI Events KeyboardEvent code Values](https

## Instance properties

- {{domxref('KeyboardLayoutMap.entries')}} {{ReadOnlyInline}} {{experimental_inline}}
- : Returns an array of a given object's own enumerable property `[key, value]` pairs, in the same order as that provided by a {{jsxref("Statements/for...in", "for...in")}} loop (the difference being that a `for-in` loop enumerates properties in the prototype chain as well).
- {{domxref('KeyboardLayoutMap.keys')}} {{ReadOnlyInline}} {{experimental_inline}}
- : Returns a new _array iterator_ object that contains the keys for each index in the array.
- {{domxref('KeyboardLayoutMap.size')}} {{ReadOnlyInline}} {{experimental_inline}}
- : Returns the number of elements in the `KeyboardLayoutMap` object.
- {{domxref('KeyboardLayoutMap.values')}} {{ReadOnlyInline}} {{experimental_inline}}
- : Returns a new _array iterator_ object that contains the values for each index in the `KeyboardLayoutMap` object.

## Instance methods

- {{domxref('KeyboardLayoutMap.forEach()')}} {{ReadOnlyInline}} {{experimental_inline}}
- {{domxref('KeyboardLayoutMap.entries()')}} {{experimental_inline}}
- : Returns an array of a given object's own enumerable property `[key, value]` pairs, in the same order as that provided by a {{jsxref("Statements/for...in", "for...in")}} loop (the difference being that a `for-in` loop enumerates properties in the prototype chain as well).
- {{domxref('KeyboardLayoutMap.forEach()')}} {{experimental_inline}}
- : Executes a provided function once for each element of `KeyboardLayoutMap`.
- {{domxref('KeyboardLayoutMap.get()')}} {{experimental_inline}}
- : Returns the element with the given key from the `KeyboardLayoutMap` object.
- {{domxref('KeyboardLayoutMap.has()')}} {{experimental_inline}}
- : Returns a boolean indicating whether the `KeyboardLayoutMap` object has an element with the specified key.
- {{domxref('KeyboardLayoutMap.keys()')}} {{experimental_inline}}
- : Returns a new _array iterator_ object that contains the keys for each index in the array.
- {{domxref('KeyboardLayoutMap.values()')}} {{experimental_inline}}
- : Returns a new _array iterator_ object that contains the values for each index in the `KeyboardLayoutMap` object.

## Examples

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/keyboardlayoutmap/keys/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "KeyboardLayoutMap: keys property"
short-title: keys
slug: Web/API/KeyboardLayoutMap/keys
page-type: web-api-instance-property
page-type: web-api-instance-method
status:
- experimental
browser-compat: api.KeyboardLayoutMap.keys
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/keyboardlayoutmap/values/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "KeyboardLayoutMap: values property"
short-title: values
slug: Web/API/KeyboardLayoutMap/values
page-type: web-api-instance-property
page-type: web-api-instance-method
status:
- experimental
browser-compat: api.KeyboardLayoutMap.values
Expand Down