Sign in
chromium
/
external
/
github.com
/
SeleniumHQ
/
selenium
/
refs/heads/api-docs-4.30.0-all
/
.
/
node_modules
/
rambda
/
src
/
unless.js
blob: 22cc648ddd3f31c9f373af99c9ec119f864af3b2 [
file
] [
log
] [
blame
] [
edit
]
export
function
unless
(
predicate
,
whenFalse
){
if
(
arguments
.
length
===
1
){
return
_whenFalse
=>
unless
(
predicate
,
_whenFalse
)
}
return
input
=>
predicate
(
input
)
?
input
:
whenFalse
(
input
)
}