slice in angular typescript code example
Example 1: slice() in typesript
var str = "Apples are round, and apples are juicy.";
var sliced = str.slice(3, -2);
console.log(sliced);
Example 2: array.slice in typescript
arr.slice([start[, end]])
var str = "Apples are round, and apples are juicy.";
var sliced = str.slice(3, -2);
console.log(sliced);
arr.slice([start[, end]])