Simplify _.size.

Former-commit-id: a7d3338cbd5784ec6b9b6a25e18acd9507f4b21c
This commit is contained in:
John-David Dalton
2012-08-31 17:04:06 -07:00
parent 2c31411ffb
commit ce5ae1dfdd
6 changed files with 46 additions and 61 deletions

View File

@@ -1912,7 +1912,7 @@ initialize();
Creates a two dimensional array of the given object's key-value pairs, i.e. `[[key1, value1], [key2, value2]]`.
#### Arguments
1. `object` *(Object)*: The object to inspect..
1. `object` *(Object)*: The object to inspect.
#### Returns
*(Array)*: Returns new array of key-value pairs.
@@ -2025,8 +2025,8 @@ _.pluck(stooges, 'name');
Produces a random number between `min` and `max` *(inclusive)*. If only one argument is passed, a number between `0` and the given number will be returned. If no arguments are passed `_.random` will act as `Math.random`.
#### Arguments
1. `min` *(Number)*: The minimum possible value
2. `max` *(Number)*: The maximum possible value
1. `min` *(Number)*: The minimum possible value.
2. `max` *(Number)*: The maximum possible value.
#### Returns
*(Number)*: Returns the random number.