Can someone please share the most efficient method for verifying if a string in TypeScript contains a particular subString or part of a subString?
For instance, say I have a string path: "home/jobs/AddJobs", and I need to determine if it matches or includes the substring: "home/jobs"
Is there a way to achieve this using Angular 6 in typescript?