You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an alias, or method, for VERSION const e.g. '_.UNDERSCORE_VERSION' or _.version() ==> "Underscore v.X.XX.X" to allow users to determine if Underscore is being used and if so which version.
The text was updated successfully, but these errors were encountered:
@clanceyp It is already accessible as _.VERSION. I now realize it isn't mentioned in the documentation, though. Will label and retitle accordingly. Thanks for bringing it up!
Are you aware of other libraries than Underscore or Lodash that use _?
If you only need to distinguish between those two, you can use feature detection. Lodash has _.partialRight, Underscore does not. Underscore has _.restArguments, Lodash does not (at least not in version 4+). There are many other differences as well.
Also, if the major version number is 1, you are much more likely dealing with Underscore than Lodash, since Lodash is currently at 4.
Add an alias, or method, for VERSION const e.g. '_.UNDERSCORE_VERSION' or _.version() ==> "Underscore v.X.XX.X" to allow users to determine if Underscore is being used and if so which version.
The text was updated successfully, but these errors were encountered: