Skip to content

isEmpty

isEmpty(map)

Checks if map is empty (has no entries).

ts
isEmpty(new Map()); // true
isEmpty(new Map([["a", 1]])); // false
ts
pipe(new Map(), isEmpty()); // true
pipe(new Map([["a", 1]]), isEmpty()); // false