Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const DEFAULT_HEADERS = { //We are going to be using this const in other modules too.
- foo: "foo"
- };
- export function someFunction(someCond) {
- const headers = DEFAULT_HEADERS;
- if (someCond) {
- headers.foo = "bar"; //Don't do this!
- }
- };
- const props2 = {...props};
- props.alpha.innerAlpha.b = "BBB";
Add Comment
Please, Sign In to add comment