There is EmptyObject
, and I think a EmptyArray
type for a strictly empty array would be useful.
One use case of empty array with React to avoid re-renders because of unstable default prop:
const defaultArr = [];
const Component = ({arr = defaultArr}) => arr.join(",");
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too