Add `toArray` method
Add toArray-sync.js example
Make `toArray` reusable
Add sync tests for `toArray()` method