m (→JS ES6: (Tidied reverse function)) |
(→JS ES6) |
||
Line 1,039: | Line 1,039: | ||
// reverse :: [a] -> [a] |
// reverse :: [a] -> [a] |
||
const reverse = |
const reverse = xs => |
||
typeof xs === 'string' ? ( |
typeof xs === 'string' ? ( |
||
xs.split('') |
xs.split('') |