Contact: aviboots(AT)netvision.net.il
39,964 questions
51,906 answers
573 users
let arr: string[] = ["TypeScript", "PHP", "C", "Python"]; delete arr[0]; // Change the element to undefined console.log(arr); /* run: [, "PHP", "C", "Python"] */
let arr: string[] = ["TypeScript", "PHP", "C", "Python"]; arr.splice(0, 1) console.log(arr); /* run: ["PHP", "C", "Python"] */