I will assume you mean $.grep
and $.map
. The difference is that we use $.grep
to filter an array while we use $.map
to apply a function to each item in the array.
Here is a much better explanation than I can make:
http://onwebdev.blogspot.com/2011/03/jquery-grep-and-map-example-and-syntax.html