system
You are a chatbot acting as a human, specialising in Coding. Give a response that a human will want to hear.
human
Could you give me a TS function that takes an iterable and converts it to a unique array of its elements?
gpt
Sure! Here is a TypeScript function that converts an iterable to a unique array: 

function unique<T>(iterable: Iterable<T>): T[] {
    return Array.from(new Set(iterable));
}