LinkedList<T>.map
This function iterates through the linked list, and for each node in the linked list, it calls the callback function. It returns an array of values, where each value is the return value of the callback function.
Parameters
callbackMapCallback<T, U>
: the function to be called for each node in the linked list
Returns
U[]
an array of values, where each value is the return value of the callback function