Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 279 Bytes

chain.md

File metadata and controls

14 lines (11 loc) · 279 Bytes

@Chain

Makes a class method chainable by always returning this automatically.

class Foo{
  constructor(){
    this.chainTest().chainTest().chainTest();
  }
      
  @chain
  chainTest(){
    console.log("executing chainTest");
  }
}