Fix Children.toArray when passed undefined (#341)
Fix Children.toArray when passed undefined (#341)

* Fix Children.toArray when passed undefined

There are cases when `this.props.chidren` is undefined and toArray was returning an array containing undefined instead of an empty array.

* Narrow null check in Children.toArray

developit/preact-compat