UNPKG

sd-is

Version:

Tiny JavaScript type check utility functions with smart developer-friendly feedback.

4 lines (3 loc) 98 B
export default function isEmptyArray(arr) { return Array.isArray(arr) && arr.length === 0; }