Question d’entretien chez Sense

Q: Give me a function that behaves like 'flat' function in JavaScript.