https://leetcode.com/problems/sign-of-the-product-of-an-array/


Runtime: 91 ms, faster than 55.30% of TypeScript online submissions for Sign of the Product of an Array.

Memory Usage: 45.3 MB, less than 12.12% of TypeScript online submissions for Sign of the Product of an Array.


```typescript
function arraySign(nums: number[]): number {
    //9:36
    let value = 1
    for (const num of nums) {
        value *= num
    }
    if (value == 0) {return 0}
    if (value > 0) {return 1}
    if (value < 0) {return -1}
    return 0
    //9:37
};
```
