Sign in
chromium
/
devtools
/
devtools-frontend
/
refs/heads/main
/
.
/
node_modules
/
rambda
/
src
/
prepend.js
blob: 22ed2c906db06eeec7c0d644f418d9493b135bbf [
file
] [
log
] [
blame
] [
edit
]
export
function
prepend
(
x
,
input
){
if
(
arguments
.
length
===
1
)
return
_input
=>
prepend
(
x
,
_input
)
if
(
typeof
input
===
'string'
)
return
[
x
].
concat
(
input
.
split
(
''
))
return
[
x
].
concat
(
input
)
}