Skip to content

Latest commit

 

History

History
 
 

keepwhen

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

flyd-keepwhen

keepWhen function for Flyd.

Keeps values from the second stream when the first stream is true (true as in === true).

Usage

var closeDropdown = keepWhen(popupOpen, backgroundClicked);
flyd.map(closeDropdown, function() {
  // Do stuff.
});