monojack / react-object-view

React component for viewing Javascript objects
https://monojack.github.io/react-object-view/
25 stars 4 forks source link

Support for non-plain objects without iterator? #8

Open amccloud opened 1 month ago

amccloud commented 1 month ago
export const isIterable = value => isFunction(value?.[Symbol.iterator]) || (value && Object.keys(value).length > 0)
monojack commented 1 month ago

Could you give more details? Btw, any PRs are welcome