Hi I want to achieve something like this in TypeScript/JavaScript
const foo = new something();
foo.group.method();
I've already tried using objects and it works just fine but I was wonder is this the best way to achieve this or not
My Code:
class something{
someMethod(){
//do something
}
group:{
doSomething:()=>{
//my grouped method
}
}
}