You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello.insertBefore(button,null);// this workaround does not work either, as Chrome will report an error:// parameter 2 is not of type" 'node'constmyNull=Object.create(null);hello.insertBefore(button,myNull);
The text was updated successfully, but these errors were encountered:
https://developer.mozilla.org/en-US/docs/Web/API/Node/insertBefore allows the 2nd arg to be null
That will however give an error to use undefined instead.
However when we use undefined, then it auto-fixes it and removes the "undefined" arg (unless checkArguments of https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-undefined.md#checkarguments is set)
no-null
no-useless-undefined
The text was updated successfully, but these errors were encountered: