Question : how to slice array in angular 6
Answered by : said-hr
// Driver code
var arr = [ 11, 89, 23, 7, 98 ];
// use of slice() method
var val = arr.slice(2, 4);
// printing
console.log( arr );
console.log( val );
Source : https://www.geeksforgeeks.org/typescript-array-slice-method/ | Last Update : Tue, 22 Mar 22