Why array or objects defaults returned by a factory function

why array or objects defaults returned by a factory function