Skip to content
Browse files

shareValue

  • Loading branch information...
1 parent f0c034e commit 52e80760b53ba1fe791ba7b78e0513534af611e9 @mattpodwysocki mattpodwysocki committed
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/modular/observable/sharevalue.js
View
7 src/modular/observable/sharevalue.js
@@ -0,0 +1,7 @@
+'use strict';
+
+var publishValue = require('./publishvalue');
+
+module.exports = function shareValue(source, initialValue) {
+ return publishValue(source, initialValue).refCount();
+};

0 comments on commit 52e8076

Please sign in to comment.
Something went wrong with that request. Please try again.