title: How to create object from static method which accepts function
body: <pre><code> static fromDto(httpClient: HttpClient, adalSvc: MsAdalAngular6Service) {
          return (dto: Dto) =&gt; {
            return new Note(httpClient, dto.xxx, adalSvc);
  
          };
     }
  </code></pre>
  
  <p>How to get the Note object from this static method in typescript. I have create a Dto object and trying to pass it to this method which will give me a Note object but can't seem to do that.</p>
  
  <p>What I did was this </p>
  
  <pre><code>const notes = dtos.map(d =&gt; {
  Note.fromDto(null, null).apply(d); });
  </code></pre>
  
  <p>can you please tell me how to do that?</p>