I am working on a super simple meteor app and found some code that does almost exactly what I want, but has a dependency on underscorejs. I have never used underscorejs and prefer not to have that dependency (I have certainly heard that underscore is great, but I just don't want to deal with any unnecessary packages at this time). This is the only line that uses underscorejs:
this.channels[name].args = _.toArray(arguments);
Would rewriting the toArray function be trivial or is there some heavy lifting going on underneath the hood?
The code came from this blog entry: http://www.manuel-schoebel.com/blog/meteorjs-package-only-app-structure-with-mediator-pattern and is located in the Mediator object example.