daily pastebin goal
7%
SHARE
TWEET

Untitled

a guest Feb 11th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export const DEFAULT_HEADERS = {  //We are going to be using this const in other modules too.
  2.    foo: "foo"
  3. };
  4.  
  5. export function someFunction(someCond) {
  6.    const headers = DEFAULT_HEADERS;
  7.    if (someCond) {
  8.        headers.foo = "bar"; //Don't do this!
  9.    }
  10. };
  11.    
  12. const props2 = {...props};
  13.    props.alpha.innerAlpha.b = "BBB";
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top