Module

x/lodash_es/src/size.js>default

lodash for deno use
Latest
function default
import { default } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/size.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.