To check if an array is empty in React, access its `length` property, e.g. `arr.length`. If an array's length is equal to `0`, then it is empty.
確定! 回上一頁