Sugar icon indicating copy to clipboard operation
Sugar copied to clipboard

A Javascript library for working with native objects.

Results 96 Sugar issues
Sort by recently updated
recently updated
newest added

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. ![](https://cl.ly/282m0D1G2e0q/Screen%20Recording%202018-06-29%20at%2010.53%20AM.gif)

Bug
Date

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`...

Proposal

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.

Docs

- 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...

Feature