Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Commit 52e8076

Browse files
shareValue
1 parent f0c034e commit 52e8076

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/modular/observable/sharevalue.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict';
2+
3+
var publishValue = require('./publishvalue');
4+
5+
module.exports = function shareValue(source, initialValue) {
6+
return publishValue(source, initialValue).refCount();
7+
};

0 commit comments

Comments
 (0)