baconjs/bacon.js — pull request #441 by dweave (2014-10-07 22:18:06+00:00)
Title: check for module.exports for nodejs environent.

checking for module.exports checks more thoroughly that it is in fact nodejs. Bugs occur in environments when module exists (angular-mocks specifically).