Idea for ECMAScript 7: Number.compare(a, b)

C. Scott Ananian ecmascript at cscott.net
Thu Jun 5 16:18:09 PDT 2014


On Thu, Jun 5, 2014 at 7:15 PM, Axel Rauschmayer <axel at rauschma.de> wrote:
> ```js
> // Compact ECMAScript 6 solution
> // Risk: number overflow
> [1, 5, 3, 12, 2].sort((a,b) => a-b)
> ```

Is this really an issue for IEEE floating point?
 --scott


More information about the es-discuss mailing list