condición de matriz en blanco en react js

“how to check if an array is empty in react” Code Answer's
if (Array. isArray(array) && array. length) {
// array exists and is not empty.
}
Tense Thrush