Sugar
Sugar copied to clipboard
A Javascript library for working with native objects.
Would like to at least consider `Date.create` throwing errors on invalid input and opening this to discussion. Pros: Simpler handling through normal control flow. Cons: Not consistent with `new Date`...
Falling back was at one point a safety but the Sugar library has matured and handles many if not all native formats. Falling back now makes the library vulnerable to...
Parsing 20/6/2018 gives an error, but parsing 19/6/2018 results in July 6, 2019. It seems 12 of the 19 months got converted to an extra year. 
via Twitter from _@ioquatix_ Version 2.0.0 added chainable behavior, however one note I immediately got is that the behavior of having to unwrap boolean values, either explicitly using the `raw`...
It would be super useful to show native methods in the [docs](http://sugarjs.com/api), so that there's one place to see all methods available on a given type.
- Fix broken links to the `locales` directory
I recently realized sugar seems to ignore an arbitrary prefix, which makes it difficult to use for sniffing things that look like dates. For example `some random text 09/16/2016` gets...