Answers for "toast duplicate angular"

0

toast duplicate angular

if (this.toasterconfig.preventDuplicates && this.toasts.length > 0) {
  if (toast.toastId && this.toasts.some(t => t.toastId === toast.toastId)) {
    return;
  } else if (this.toasts.some(t => t.body === toast.body)) {
    return;
  }
}
Posted by: Guest on October-19-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language