docs(api.md): clarify jshandle.getProperties() method (#1594)

Fixes #1592
This commit is contained in:
Andrey Lushnikov 2020-03-30 16:16:28 -07:00 committed by GitHub
parent 43b91e6930
commit eabba567bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2871,7 +2871,7 @@ See [page.evaluateHandle()](#pageevaluatehandlepagefunction-arg) for more detail
#### jsHandle.getProperties()
- returns: <[Promise]<[Map]<[string], [JSHandle]>>>
The method returns a map with property names as keys and JSHandle instances for the property values.
The method returns a map with **own property names** as keys and JSHandle instances for the property values.
```js
const handle = await page.evaluateHandle(() => ({window, document}));