1 line Math.sign
Code\n\nfunction arraySign(nums: number[]): number {\n    return nums.reduce((sign, cur) => sign * Math.sign(cur), 1);\n};\n
# Code\n```\nfunction arraySign(nums: number[]): number {\n    return nums.reduce((sign, cur) => sign * Math.sign(cur), 1);\n};\n```
['TypeScript', 'JavaScript']