Major_Lift

Untitled

Jun 24th, 2021
905
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Blah {
  2.   constructor(properties = { type: 'A', size: 1 }) {
  3.     console.log(properties);
  4.   }
  5. }
  6.  
  7. const meh = new Blah()
  8. // { type: 'A', size: 1 }
RAW Paste Data