Skip to content

Dont-Use-With

Documentation Index

Fetch the complete documentation index at: https://docs.sourcery.ai/llms.txt

Use this file to discover all available pages before exploring further.

Avoid using with statements.

with (thing) {
y = 5;
x = 2;
}

The with statement is deprecated, and may cease to work in browsers at any time.

with gives short-hand access to an object’s properties, but the scope is inconsistent and it’s better just to use normal attribute setting.