Added example of objectOf usage in documentation.
Merge pull request #1712 from mathieumg/master

Added example of objectOf usage in documentation.