-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functional style #2908
base: master
Are you sure you want to change the base?
Functional style #2908
Commits on Dec 30, 2020
-
Configuration menu - View commit details
-
Copy full SHA for c22e1e9 - Browse repository at this point
Copy the full SHA c22e1e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce15d38 - Browse repository at this point
Copy the full SHA ce15d38View commit details -
Configuration menu - View commit details
-
Copy full SHA for f0e9bc3 - Browse repository at this point
Copy the full SHA f0e9bc3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b51eae - Browse repository at this point
Copy the full SHA 0b51eaeView commit details -
Configuration menu - View commit details
-
Copy full SHA for f4e0f71 - Browse repository at this point
Copy the full SHA f4e0f71View commit details -
Configuration menu - View commit details
-
Copy full SHA for 11bdeab - Browse repository at this point
Copy the full SHA 11bdeabView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bc4c50 - Browse repository at this point
Copy the full SHA 3bc4c50View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea55aeb - Browse repository at this point
Copy the full SHA ea55aebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5092fb5 - Browse repository at this point
Copy the full SHA 5092fb5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 008990f - Browse repository at this point
Copy the full SHA 008990fView commit details -
Configuration menu - View commit details
-
Copy full SHA for bd14ef1 - Browse repository at this point
Copy the full SHA bd14ef1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 38129be - Browse repository at this point
Copy the full SHA 38129beView commit details -
Configuration menu - View commit details
-
Copy full SHA for be5b8a2 - Browse repository at this point
Copy the full SHA be5b8a2View commit details
Commits on Feb 4, 2021
-
Configuration menu - View commit details
-
Copy full SHA for adfb2f8 - Browse repository at this point
Copy the full SHA adfb2f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for e842fd5 - Browse repository at this point
Copy the full SHA e842fd5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d73fb3 - Browse repository at this point
Copy the full SHA 5d73fb3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3753fe7 - Browse repository at this point
Copy the full SHA 3753fe7View commit details -
Refactor _.first and _.last, using getLength
This cost 5 bytes, but it's both more readable and more efficient.
Configuration menu - View commit details
-
Copy full SHA for d7393b4 - Browse repository at this point
Copy the full SHA d7393b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18fd848 - Browse repository at this point
Copy the full SHA 18fd848View commit details -
Configuration menu - View commit details
-
Copy full SHA for 296be9e - Browse repository at this point
Copy the full SHA 296be9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 60319af - Browse repository at this point
Copy the full SHA 60319afView commit details -
Configuration menu - View commit details
-
Copy full SHA for 645eafe - Browse repository at this point
Copy the full SHA 645eafeView commit details -
Configuration menu - View commit details
-
Copy full SHA for aac1042 - Browse repository at this point
Copy the full SHA aac1042View commit details -
Configuration menu - View commit details
-
Copy full SHA for 431b84e - Browse repository at this point
Copy the full SHA 431b84eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5781d89 - Browse repository at this point
Copy the full SHA 5781d89View commit details -
Configuration menu - View commit details
-
Copy full SHA for 81a7a77 - Browse repository at this point
Copy the full SHA 81a7a77View commit details -
Configuration menu - View commit details
-
Copy full SHA for b4ab797 - Browse repository at this point
Copy the full SHA b4ab797View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5bc6d47 - Browse repository at this point
Copy the full SHA 5bc6d47View commit details -
Configuration menu - View commit details
-
Copy full SHA for eef39cd - Browse repository at this point
Copy the full SHA eef39cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for b63e425 - Browse repository at this point
Copy the full SHA b63e425View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2fac273 - Browse repository at this point
Copy the full SHA 2fac273View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9624b1b - Browse repository at this point
Copy the full SHA 9624b1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3120fd2 - Browse repository at this point
Copy the full SHA 3120fd2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a326ad - Browse repository at this point
Copy the full SHA 3a326adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f3562a - Browse repository at this point
Copy the full SHA 1f3562aView commit details -
Configuration menu - View commit details
-
Copy full SHA for cba898c - Browse repository at this point
Copy the full SHA cba898cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 230fee1 - Browse repository at this point
Copy the full SHA 230fee1View commit details -
Replace _.each by linearSearch in _.mixin and the array methods
This reduces internal dependencies, potentially slimming down bundles substantially. Surprisingly, it also saves one byte on monolithic standard Underscore.
Configuration menu - View commit details
-
Copy full SHA for a0ef35a - Browse repository at this point
Copy the full SHA a0ef35aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8764f04 - Browse repository at this point
Copy the full SHA 8764f04View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc0e942 - Browse repository at this point
Copy the full SHA bc0e942View commit details -
Configuration menu - View commit details
-
Copy full SHA for 65c16db - Browse repository at this point
Copy the full SHA 65c16dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8cfa13f - Browse repository at this point
Copy the full SHA 8cfa13fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8edde7b - Browse repository at this point
Copy the full SHA 8edde7bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 19ba06e - Browse repository at this point
Copy the full SHA 19ba06eView commit details -
Swap the final parameters of linearSearch
One would expect that this saves bytes, since we get rid of a lot of nulls. In reality, this change actually costs a byte. Nevertheless, it simplifies the code a bit and also makes room for a possible future end-of-range parameter.
Configuration menu - View commit details
-
Copy full SHA for 5f46a25 - Browse repository at this point
Copy the full SHA 5f46a25View commit details -
Configuration menu - View commit details
-
Copy full SHA for dfd6d6b - Browse repository at this point
Copy the full SHA dfd6d6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 13fca95 - Browse repository at this point
Copy the full SHA 13fca95View commit details -
Configuration menu - View commit details
-
Copy full SHA for 457a96d - Browse repository at this point
Copy the full SHA 457a96dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7daecbe - Browse repository at this point
Copy the full SHA 7daecbeView commit details -
Configuration menu - View commit details
-
Copy full SHA for ce3f0ed - Browse repository at this point
Copy the full SHA ce3f0edView commit details -
Configuration menu - View commit details
-
Copy full SHA for c654128 - Browse repository at this point
Copy the full SHA c654128View commit details -
Configuration menu - View commit details
-
Copy full SHA for fca3114 - Browse repository at this point
Copy the full SHA fca3114View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8743fc0 - Browse repository at this point
Copy the full SHA 8743fc0View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd49157 - Browse repository at this point
Copy the full SHA bd49157View commit details -
Revert "Enable customization of accumulator initialization in createR…
…educe" This reverts commit a76ed7418a3a2d14443b7d94bdccddbfc33daf8c.
Configuration menu - View commit details
-
Copy full SHA for 5f72f90 - Browse repository at this point
Copy the full SHA 5f72f90View commit details -
Configuration menu - View commit details
-
Copy full SHA for c71244a - Browse repository at this point
Copy the full SHA c71244aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e108783 - Browse repository at this point
Copy the full SHA e108783View commit details -
Inline compareNumeric in _.min and _.max
This doesn't seem to save any time, but surprisingly, it does save bytes.
Configuration menu - View commit details
-
Copy full SHA for e2a9a83 - Browse repository at this point
Copy the full SHA e2a9a83View commit details -
Use boolean state variable, not shape-shifting callbacks in extremum
This saves both time and bytes.
Configuration menu - View commit details
-
Copy full SHA for 448d2e8 - Browse repository at this point
Copy the full SHA 448d2e8View commit details -
Don't use _.partial anymore in _.min and _.max
This saves function call overhead and surprisingly, also saves bytes.
Configuration menu - View commit details
-
Copy full SHA for 5165f1f - Browse repository at this point
Copy the full SHA 5165f1fView commit details -
Enable find-by-strict-equality function elision in linearSearch
and use it in _.indexOf.
Configuration menu - View commit details
-
Copy full SHA for 9bf9dc3 - Browse repository at this point
Copy the full SHA 9bf9dc3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 64e62ef - Browse repository at this point
Copy the full SHA 64e62efView commit details -
Configuration menu - View commit details
-
Copy full SHA for aaa0fcb - Browse repository at this point
Copy the full SHA aaa0fcbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 01f324e - Browse repository at this point
Copy the full SHA 01f324eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a0ebd8 - Browse repository at this point
Copy the full SHA 6a0ebd8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fee0d5 - Browse repository at this point
Copy the full SHA 7fee0d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for f60a3ef - Browse repository at this point
Copy the full SHA f60a3efView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba7df7a - Browse repository at this point
Copy the full SHA ba7df7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1cb9003 - Browse repository at this point
Copy the full SHA 1cb9003View commit details -
Configuration menu - View commit details
-
Copy full SHA for 674ed39 - Browse repository at this point
Copy the full SHA 674ed39View commit details -
Configuration menu - View commit details
-
Copy full SHA for b7637b6 - Browse repository at this point
Copy the full SHA b7637b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for d5b8d74 - Browse repository at this point
Copy the full SHA d5b8d74View commit details -
Configuration menu - View commit details
-
Copy full SHA for b99a079 - Browse repository at this point
Copy the full SHA b99a079View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9de1ceb - Browse repository at this point
Copy the full SHA 9de1cebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 20e88e5 - Browse repository at this point
Copy the full SHA 20e88e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d82eadc - Browse repository at this point
Copy the full SHA d82eadcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 640332b - Browse repository at this point
Copy the full SHA 640332bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 341ad30 - Browse repository at this point
Copy the full SHA 341ad30View commit details -
Configuration menu - View commit details
-
Copy full SHA for eaba5b5 - Browse repository at this point
Copy the full SHA eaba5b5View commit details