alien4u
01/08/2021, 3:27 AMfor (const nKey in Object) {};
Is a perfectly valid ES6 and since keys are generally static I think is a common and good practice.
But but NetSuite does not like that; it does not even allow you to upload the file with that.michoel
01/08/2021, 3:36 AMmichoel
01/08/2021, 3:36 AMmichoel
01/08/2021, 3:41 AMObject
could lead to some weird bugs down the line as it will shadow the built in Objectmichoel
01/08/2021, 3:44 AMObject.keys(myObject).forEach(key => {})
stalbert
01/08/2021, 3:45 AMmichoel
01/08/2021, 3:46 AMstalbert
01/08/2021, 3:46 AMmichoel
01/08/2021, 3:48 AMhasOwnProperty
, hence my preferencestalbert
01/08/2021, 3:50 AMalien4u
01/08/2021, 3:50 AMmichoel
01/08/2021, 3:50 AMstalbert
01/08/2021, 3:51 AMstalbert
01/08/2021, 3:51 AMstalbert
01/08/2021, 3:51 AMObject
maybe that was the root cause of the issue?alien4u
01/08/2021, 3:52 AMstalbert
01/08/2021, 3:52 AMstalbert
01/08/2021, 3:53 AMmichoel
01/08/2021, 4:04 AMstalbert
01/08/2021, 4:09 AM