daily pastebin goal
43%
SHARE
TWEET

Untitled

a guest Nov 18th, 2017 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Welcome! require() some modules from npm (like you were using browserify)
  2. // and then hit Run Code to run your code on the right side.
  3. // Modules get downloaded from browserify-cdn and bundled in your browser.
  4. var createSelector = require('reselect').createSelector;
  5.  
  6. const selector = createSelector(
  7.   (arg) => {console.log('fetcher1', arg); return 1;},
  8.   (arg) => {console.log('fetcher2', arg); return 2;},
  9.   (un, deux) => {
  10.     console.log('result', un, deux);
  11.   }
  12. );
  13.          
  14. selector(1);        
  15. selector(2);        
  16. selector(3);
  17. selector(3);
  18. selector(3);
RAW Paste Data
Top