Jump to content

difference between _.select from underscorejs and $.grep from jquery


Girish Dubey

Recommended Posts

Did you read the docs? To me they look to do the same (note select is now just an alias for filter in new versions)

http://api.jquery.com/jquery.grep/

https://github.com/lodash/lodash/blob/3.10.1/doc/README.md#_filtercollection-predicate_identity-thisarg

Link to comment
Share on other sites

My recommendation would be to only load one library, either jQuery or Underscore. Use whichever library has the most features that you plan to use.

 

Don't worry about efficiency.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...