Skip to content

Instantly share code, notes, and snippets.

View IamFlowZ's full-sized avatar
🏎️

Dakota Lewallen IamFlowZ

🏎️
View GitHub Profile
interface FooParams {
name: string
}
class Foo {
constructor(params: FooParams) {
this = {...this, ...params}
}
}
@IamFlowZ
IamFlowZ / output.txt
Created October 25, 2018 18:38
When I instantiate "mine" outside of the if statement, it won't change the value from within the condition. But it will execute the "set a" portion of the statement inside the condition.
z: 45
a: 9
This is the value of z / x = 20
a: 20