feature(store) add

This commit is contained in:
coderaiser 2017-05-16 16:15:22 +03:00
parent fe0210d573
commit ea297fc23e
5 changed files with 65 additions and 37 deletions

13
common/store.js Normal file
View file

@ -0,0 +1,13 @@
'use strict';
module.exports = () => {
const data = {};
return (value) => {
if (typeof value !== 'undefined')
data.value = value;
return data.value;
};
};