How to remove duplicate elements from array in JavaScript

How to remove duplicate elements from array in JavaScript?