Pregunta de entrevista de Elastic

Write a function that basically does what one of the underscore functions do.