wizard999
10/13/2019 - 11:55 PM

remove specific string from array

    //remove specific string from array
    removeFromArray(array: any[], element: string): any[] {

        return array.filter(item => item !== element);
    }