I want to write an if for my code to first check the support of navigator.clipboard.writeText then set my text in it, how can I do that in javascript?