Codewars 8 kyu Remove First and Last Character Part Two JavaScript

preview_player
Показать описание
this one uses split(), slice(), and then join()
Рекомендации по теме
Комментарии
Автор

You must be kidding me, I got the split + slice + join part right but spent ~30min trying to get the null value LOL
I was trying to use arr.length === 0 || arr === "", never thought I could use just || null

renatosousa