• Adds all own enumerable function properties of a source object to the destination object. If object is a function then methods are added to its prototype as well.

    Note: Use _.runInContext to create a pristine lodash function to avoid conflicts caused by modifying the original.

    Type Parameters

    • TObject

    Parameters

    • object: TObject

      The destination object.

    • source: Dictionary<((...args: any[]) => any)>

      The object of functions to add.

    • Optionaloptions: MixinOptions

      The options object.

    Returns TObject

    Returns object.

  • Type Parameters

    • TResult

    Parameters

    • source: Dictionary<((...args: any[]) => any)>
    • Optionaloptions: MixinOptions

    Returns LoDashStatic

    _.mixin