Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- // Dependencies
- var Collection = require('./collection');
- module.exports = function Singleton (...args) {
- var instance = this.prototype.instance;
- return instance
- ? instance
- : new Collection(...args);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement