UNPKG
cevichify
Version:
latest (1.0.0)
1.0.0
Turns all words in a string to 'ceviche'
cevichify
/
index.js
11 lines
(8 loc)
•
199 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
function
cevichify
(
text
) {
if
(!text ||
typeof
text !==
"string"
)
return
null
;
return
text .
split
(
" "
) .
map
(
(
word
) =>
"ceviche"
) .
join
(
" "
); }
module
.
exports
= cevichify;