Girish Dubey Posted March 3, 2016 Share Posted March 3, 2016 What is the difference between _.select from underscorejs and $.grep from jquery. in both function which is fast for getting value. Link to comment Share on other sites More sharing options...
thescientist Posted March 3, 2016 Share Posted March 3, 2016 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 More sharing options...
Ingolme Posted March 3, 2016 Share Posted March 3, 2016 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now