@ekim088/toolkit
    Preparing search index...

    Function createObjectFactory

    • Creates a factory function that returns an object of a given type.

      Type Parameters

      • T extends object

      Parameters

      • defaultObj: T

        The default object to return when calling the factory function.

      Returns ObjectFactoryFn<T>

      A factory function that returns a new object of a given type. Accepts an object argument that shallowly overrides properties on the default object.