Skip to content

Function: isEmpty()

isEmpty(collection, options?): boolean

true when a Collection has no elements. Uses length for arrays and size for Set/Map.

Record<string, unknown> | Collection<unknown>

The array, set, or map to test.

boolean

boolean