We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 685f582 + 25243ed commit 4c5abf7Copy full SHA for 4c5abf7
core/src/main/scala/japgolly/scalajs/react/CallbackOption.scala
@@ -137,6 +137,9 @@ final class CallbackOption[A](private val cbfn: () => Option[A]) extends AnyVal
137
def filter(condition: A => Boolean): CallbackOption[A] =
138
CallbackOption(get.map(_ filter condition))
139
140
+ def withFilter(condition: A => Boolean): CallbackOption[A] =
141
+ filter(condition)
142
+
143
/**
144
* Sequence a callback to run after this, discarding any value produced by this.
145
*/
0 commit comments