Skip to content

Commit d3c0434

Browse files
committed
Correct a release note example
1 parent 3750148 commit d3c0434

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

site/content/3.12/release-notes/version-3.12/whats-new-in-3-12.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,8 @@ specifications ES2020 through ES2024. The following list is non-exhaustive:
762762
`/^\p{RGI_Emoji}$/v.test("👨🏾‍⚕️")` or `/[\p{Script_Extensions=Greek}--[α-γ]]/v.test('β')`
763763

764764
- A static method to check whether an object directly defines a property, like
765-
`Object.hasOwn({ foo: 42 })`, superseding `Object.prototype.hasOwnProperty()`
765+
`Object.hasOwn({ foo: 42 }, "toString")`, superseding
766+
`Object.prototype.hasOwnProperty.call(…)`
766767

767768
- `Object.groupBy()` and `Map.groupBy()` to group the elements of an iterable
768769
according to the string values returned by a provided callback function

site/content/3.13/release-notes/version-3.12/whats-new-in-3-12.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,8 @@ specifications ES2020 through ES2024. The following list is non-exhaustive:
762762
`/^\p{RGI_Emoji}$/v.test("👨🏾‍⚕️")` or `/[\p{Script_Extensions=Greek}--[α-γ]]/v.test('β')`
763763

764764
- A static method to check whether an object directly defines a property, like
765-
`Object.hasOwn({ foo: 42 })`, superseding `Object.prototype.hasOwnProperty()`
765+
`Object.hasOwn({ foo: 42 }, "toString")`, superseding
766+
`Object.prototype.hasOwnProperty.call(…)`
766767

767768
- `Object.groupBy()` and `Map.groupBy()` to group the elements of an iterable
768769
according to the string values returned by a provided callback function

0 commit comments

Comments
 (0)