UNPKG

syllabusobject

Version:

A deterministic builder for static syllabus structures with filename-safe output.

23 lines (20 loc) 521 B
export class SyllabusBase { constructor({ name = "", description = "", image = "", color = "", tags = "",link="/" } = {}) { this.name = name; this.description = description; this.image = image; this.color = color; this.tags = tags; this.link = link ; } heroData() { return { name: this.name, description: this.description, image: this.image, color: this.color, tags: this.tags, link: this.link }; } }