mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 11:32:49 +08:00
1dcdcb5c31
* FIX: Cast all numerical values in reports The backend can return some numerical values in report as strings. That results in unexpected order of values when sorting report tables. * Create `toNumber()` helper The `typeof` and `parseFloat` seem to be the fastest path: https://jsperf.com/number-vs-typeof-vs-parsefloat#results |
||
---|---|---|
.. | ||
adapters | ||
components | ||
controllers | ||
helpers | ||
mixins | ||
models | ||
routes | ||
services | ||
templates |