Skip to content

Commit 6e2a85a

Browse files
authored
Update objects.md (#793)
* Update objects.md * Update objects.md
1 parent 9efae05 commit 6e2a85a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

_includes/js/objects.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,12 @@ var playerName = gameScore.get("playerName");
249249
var cheatMode = gameScore.get("cheatMode");
250250
```
251251

252+
Alternatively, the `attributes` property of the `Parse.Object` can be treated as a Javascript object, and even destructured.
253+
254+
```javascript
255+
const { score, playerName, cheatMode } = result.attributes;
256+
```
257+
252258
The four special reserved values are provided as properties and cannot be retrieved using the 'get' method nor modified with the 'set' method:
253259

254260
```javascript

0 commit comments

Comments
 (0)