Update formatting

This commit is contained in:
Isabelle Viktoria Maciohsek
2022-01-30 18:28:03 +02:00
parent 9cb319d726
commit 843c4c4894
7 changed files with 8 additions and 8 deletions

View File

@ -7,8 +7,8 @@ lastUpdated: 2020-10-20T11:21:07+03:00
Gets an array of function property names from own (and optionally inherited) enumerable properties of an object.
- Use `Object.keys(obj)` to iterate over the object's own properties.
- If `inherited` is `true`, use `Object.getPrototypeOf(obj)` to also get the object's inherited properties.
- Use `Object.keys()` to iterate over the object's own properties.
- If `inherited` is `true`, use `Object.getPrototypeOf()` to also get the object's inherited properties.
- Use `Array.prototype.filter()` to keep only those properties that are functions.
- Omit the second argument, `inherited`, to not include inherited properties by default.