Sobes.tech
Junior — Senior

Function that returns an array without duplicate numbers

livecode

Task condition

Create a function that takes an array of integers and returns a new array where each number appears only once.

Example input:

input_numbers = [2, 5, 3, 2, 8, 5, 9]

Expected output:

result = [2, 5, 3, 8, 9]