Add prototype to descriptions

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-10-20 11:21:07 +03:00
parent 920a0c390b
commit c3a2e47672
26 changed files with 26 additions and 26 deletions

View File

@ -6,7 +6,7 @@ tags: object,function,advanced
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.get.PrototypeOf(obj)` to also get the object's inherited properties.
- If `inherited` is `true`, use `Object.getPrototypeOf(obj)` 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.