Update docs.

Former-commit-id: 462a64eeb8f8afb0951d8449f0f7b766abbcf5cc
This commit is contained in:
John-David Dalton
2012-05-23 14:52:15 -04:00
parent 451a33f526
commit b2728d9902
2 changed files with 21 additions and 19 deletions

View File

@@ -2680,14 +2680,16 @@
}
/**
* Gets the `length` of `value` when `value` is an array or string, or gets
* the number of enumerable own properties when `value` is an object.
* Gets the size of a `value` by returning `value.length` if `value` is a
* string or array, or the number of own enumerable properties if `value` is
* an object.
*
* @static
* @memberOf _
* @category Objects
* @param {Array|Object|String} value The value to inspect.
* @returns {Number} Returns the value's size.
* @returns {Number} Returns `value.length` if `value` is a string or array,
* or the number of own enumerable properties if `value` is an object.
* @example
*
* _.size([1, 2]);