1.0.2 • Published 7 years ago
getsingle v1.0.2
I can covert anything into singleton mode
example
const create = function() {
return {};
};
const singletonCreate = getSingle(create);
singletonCreate() === singletonCreate();
const create = function() {
return {};
};
const singletonCreate = getSingle(create);
singletonCreate() === singletonCreate();