### Description Using `new Function` is [considered harmful](https://developer.chrome.com/extensions/contentSecurityPolicy#JSEval) and is blocked by CSP. Since [we are using it](https://github.com/commercetools/nodejs/blob/master/packages/http-user-agent/src/create-user-agent.js#L5-L22) to check if the code runs on nodejs or browser, can find a better solution, thus allowing CSP to be happy about it.
Description
Using
new Functionis considered harmful and is blocked by CSP.Since we are using it to check if the code runs on nodejs or browser, can find a better solution, thus allowing CSP to be happy about it.