Sign in
chromium
/
devtools
/
devtools-frontend
/
refs/heads/main
/
.
/
node_modules
/
rambda
/
src
/
match.js
blob: c73499012f9613a5c0b45af0c265f468833d67a0 [
file
] [
log
] [
blame
] [
edit
]
export
function
match
(
pattern
,
input
){
if
(
arguments
.
length
===
1
)
return
_input
=>
match
(
pattern
,
_input
)
const
willReturn
=
input
.
match
(
pattern
)
return
willReturn
===
null
?
[]
:
willReturn
}