Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 269 Bytes

File metadata and controls

13 lines (11 loc) · 269 Bytes

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.
});