doc: Fleshed out Number#abs slightly.

This commit is contained in:
tjcrowder 2009-09-10 16:17:35 +01:00
parent 917f10b574
commit e5fa0928e8
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,8 @@ Object.extend(Number.prototype, (function() {
/**
* Number#abs() -> Number
*
* Returns the absolute value of the number.
* Returns the absolute value of the number. Convenience method that simply
* calls `Math.abs` on this instance and returns the result.
**/
function abs() {
return Math.abs(this);