Skip to content

Commit

Permalink
drop whenNot
Browse files Browse the repository at this point in the history
  • Loading branch information
yurique committed Dec 10, 2023
1 parent 0662dbd commit 7e53a4b
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ import scala.scalajs.js

trait MiscSyntax {

@inline def whenNot[A, El <: Element](b: Boolean)(
mods: Modifier[El]*
): Modifier[El] = when(!b)(mods: _*)

@inline def whenEmpty[El <: Element](o: Option[_])(mods: Modifier[El]*): Modifier[El] =
when(o.isEmpty)(mods: _*)

Expand Down

0 comments on commit 7e53a4b

Please sign in to comment.