Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const debugLog = (
angularOrReact: 'angularjs' | 'react',
component: string,
id: string,
method: string,
message: string,
...args
) => {
if (window && window['debugReactHybrid'] !== true) return;
console.log(
`${padString(12, angularOrReact)} ${padString(40, `${component}[${id}]`)} ${padString(
35,
`${method}:`
)} ${message}`,
...args
);
};