Advertisement
Guest User

Untitled

a guest
Jan 28th, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. 'use strict';
  2.  
  3. // Dependencies
  4. var Collection = require('./collection');
  5.  
  6.  
  7. module.exports = function Singleton (...args) {
  8.  
  9. var instance = this.prototype.instance;
  10. return instance
  11. ? instance
  12. : new Collection(...args);
  13.  
  14. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement