'How to find the length of data source using typescript in angular application

Unable to find length of data source(array) using typescript in angular application

this.activatedRoute.data.subscribe(
      (res) => {
      console.log(res);
      console.log(res.length);
    })

Current Result

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source