map() invokes each plugin and returns the result. chain() would invoke a plugin with the same arguments, get the return value and pass it to the other plugins in the list, then return the results.
map() invokes each plugin and returns the result. chain() would invoke a plugin with the same arguments, get the return value and pass it to the other plugins in the list, then return the results.