Skip to content

Commit

Permalink
Fix return type for getAttributeNames (mdn#32514)
Browse files Browse the repository at this point in the history
* Fix return type for getAttributeNames

The return type should be Array. It is currently specified as undefined. This change fixes it.

* Making the return type more descriptive

This change make the return type more clear and descriptive. Based on the suggestions of @wbamberg

Co-authored-by: wbamberg <[email protected]>

---------

Co-authored-by: wbamberg <[email protected]>
  • Loading branch information
pressprogrammer and wbamberg authored Mar 2, 2024
1 parent ea20e49 commit d93e5a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/api/element/getattributenames/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ None.

### Return value

None ({{jsxref("undefined")}}).
An ({{jsxref("Array")}}) of strings.

## Examples

Expand Down

0 comments on commit d93e5a0

Please sign in to comment.