vendor/optional/lodash-0.3.2.js
function size(value) {
    var className = toString.call(value);
    return className == arrayClass || className == stringClass
      ? value.length
      : keys(value).length;
  }
function size(value) {
    var className = toString.call(value);
    return className == arrayClass || className == stringClass
      ? value.length
      : keys(value).length;
  }
function size ( value ) { var className = toString . call ( value ) ; return className == arrayClass || className == stringClass ? value . length : keys ( value ) . length ; }
Gets the size of `value` by returning `value.length` if `value` is a string
or array, or the number of own enumerable properties if `value` is an object.

@deprecated
@static
@memberOf _
@category Objects
@param {Array|Object|String} value The value to inspect.
@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]);
// => 2

_.size({ 'one': 1, 'two': 2, 'three': 3 });
// => 3

_.size('curly');
// => 5
Gets the size of value by returning value . length if value is a string or array or the number of own enumerable properties if value is an object .