Created
March 1, 2023 18:26
-
-
Save isaacs/ce1b61682cbb08174ba886e46db49ded to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// look at this glorious shit!! look what you can do with with!! | |
const someObject = { | |
foo: 'bar', | |
baz: 1, | |
asdf: ['quux'], | |
} | |
with (someObject) { | |
console.log(foo) | |
console.log(baz) | |
console.log(asdf) | |
asdf.push(baz) | |
} | |
console.log(someObject.asdf) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment