I agree with some of your points, but I also see "best practice" more on the concept level. I'm voting best practice for the approach & solution to the problem.
i don't understand why the three dots (...), return us an array and not something like this :
"paolo","zarate","azorsa","daniel".
i replaced the ...s with those values: "paolo","zarate","azorsa","daniel", to see what is going on, but i gives me an error.
clean and single line code. what about edge cases? "will it throw invalid on -3000"
Actually clever, damn.
This is really inspiring, Oss.
Me too🤣🤣🤣🤣
I agree with some of your points, but I also see "best practice" more on the concept level. I'm voting best practice for the approach & solution to the problem.
This comment is hidden because it contains spoiler information about the solution
Looks really nice and clean :).
This basically means "Give me an array of letters from sorted input array's first item" ;)
you are thing box out
This comment is hidden because it contains spoiler information about the solution
I am wondering in what cultures 1904 is 19th century. In Russia it's always been 20th one.
You need to wrap those values with brackets
[]
, because what you posted isn't an array. Using "3 dots" on a string returns an array of characters.See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax
i don't understand why the three dots (...), return us an array and not something like this :
"paolo","zarate","azorsa","daniel".
i replaced the ...s with those values: "paolo","zarate","azorsa","daniel", to see what is going on, but i gives me an error.
This comment is hidden because it contains spoiler information about the solution
Thank you for this! More learnings from the CodeWars Community
Loading more items...