Could you give me a TS function that takes an iterable and converts it to a unique array of its elements?
system
kya aap mujhe ek ties fnction de sakate hai jo ek punrarit karata he or ise apane tatwon ke ek anuthe sarani main parivartit karata he?
user
zarur!yahan ek tipscript fnction he jo ek adwitiya sarani main ek punrarit ko parivartit karata he:

fnction adwitiya <t> (iterable: iterable <t>): t [] {
    ritern ere.from (nayaa set (iterable));
}
assistant
<|system|>
</s>
<|user|>
kya aap mujhe ek ties fnction de sakate hai jo ek punrarit karata he or ise apane tatwon ke ek anuthe sarani main parivartit karata he?</s>
<|assistant|>
zarur!yahan ek tipscript fnction he jo ek adwitiya sarani main ek punrarit ko parivartit karata he:

fnction adwitiya <t> (iterable: iterable <t>): t [] {
    ritern ere.from (nayaa set (iterable));
}</s>
