Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export default class Tower {
- /**
- * @param {string} title
- * @param {string} code
- * @param {string=} img - '=' sign to distinguish optional parameters
- * @param {{offices: {number}, apartments: {number}}=} rent
- * @param {{offices: {number}, apartments: {number}}=} sale
- * @param {Array<{trait: {string}, value: {string}}>=} traits
- */
- constructor({
- title,
- code,
- img = '',
- rent = {
- offices: 0,
- apartments: 0
- },
- sale = {
- offices: 0,
- apartments: 0
- },
- traits = [{trait: 'one', value: 'first'}, {trait: 'two', value: 'second'],
- }) {
- // code here
- }
- }
Add Comment
Please, Sign In to add comment