jr-grenoble

年加入本站
jr-grenoble

最近在 Docs 的活動

檢視所有活動
頁面 日期 回應

Spread syntax


It seems that current implementations of the object spread operator yield strange results when coupled with rest parameters. This addition flags one such issue (tested with Chrome).

Spread syntax


Math.round()


The reverseshift boolean in the better example was useless.

Math.round()


Alerted readers of the danger of the "better solution". I let its author (@peteriman) fix it.

Math.round()


Removed block `// If the value is negative...` from Decimal rounding example, as it creates an exception. E.g. for`type = round`, if `exp` is 0, `decimalAdjust` defaults to Math.round which rounds towards +∞. Previous code had inconsistent behavior.