Latest
function size
import { size } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/collection.js";

Gets the size of collection by returning its length for array-like values or the number of own enumerable string keyed properties for objects.

Examples

_.size([1, 2, 3]); // => 3

_.size({ 'a': 1, 'b': 2 }); // => 2

_.size('pebbles'); // => 7

Parameters

collection

The collection to inspect.