lol !!
Then please change it in function. It's still have func findUniq(_ arr: [Int]) -> Int instead of func findUniq(_ arr: [Double]) -> Double
func findUniq(_ arr: [Int]) -> Int
func findUniq(_ arr: [Double]) -> Double
This comment is hidden because it contains spoiler information about the solution
Codewars doesn't have node v15 which supports replaceAll. Try using a RegExp with the global flag.
that indentation looks sus
but does it have support for uppercase letters?
Loading collection data...
lol !!
Then please change it in function. It's still have
func findUniq(_ arr: [Int]) -> Int
instead offunc findUniq(_ arr: [Double]) -> Double
This comment is hidden because it contains spoiler information about the solution
Codewars doesn't have node v15 which supports replaceAll. Try using a RegExp with the global flag.
that indentation looks sus
but does it have support for uppercase letters?