Yes, a shared library for frequently used JS snippets would be great for more efficient workflow.
Something like that was available back then in Adobe Edge Animate. And it could be nice if it would be possible to add the ability to copypaste JS functions from one hype doc's Resources to a new file just like any other file from the Resources list.