Array destructure
\nvar triangleType = function(nums) {\n    [a,b,c]= nums;\n    if((a+b)<=c || (b+c) <= a || (c+a) <= b) return \'none\'\n    else if(a===b && b===c && c===a) re
```\nvar triangleType = function(nums) {\n    [a,b,c]= nums;\n    if((a+b)<=c || (b+c) <= a || (c+a) <= b) return \'none\'\n    else if(a===b && b===c && c===a) return \'equilateral\'\n    else if(a !== b && b !== c && c !== a) return \'scalene\'\n    else return \'isosceles\'\n};\n```
['JavaScript']