less copy protection, more size visualization
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

30 wiersze
731 B

  1. function makeFurniture() {
  2. results = [];
  3. const dataSofas = [
  4. {
  5. name: "Two Seat",
  6. sides: {
  7. "Front": { height: math.unit(30, "inches") },
  8. "Side": { height: math.unit(30, "inches") },
  9. "Top": { height: math.unit(30.5, "inches") },
  10. }
  11. },
  12. ]
  13. results.push({
  14. name: "Sofas",
  15. constructor: () => makeAutoVehicleGroup(dataSofas,
  16. "Sofas",
  17. "furniture")
  18. });
  19. results.sort((b1, b2) => {
  20. e1 = b1.constructor();
  21. e2 = b2.constructor();
  22. return -math.subtract(e1.views[e1.defaultView].height, e2.views[e2.defaultView].height).value;
  23. });
  24. return results;
  25. }