• Creates a lodash object that wraps value with explicit method chaining enabled.

    Type Parameters

    • TrapAny extends { __lodashAnyHack: any }

    Parameters

    Returns CollectionChain<any> & FunctionChain<any> & ObjectChain<any> & PrimitiveChain<
        any,
    > & StringChain

    Returns the new lodash wrapper instance.

  • Type Parameters

    • T extends undefined | null

    Parameters

    • value: T

    Returns PrimitiveChain<T>

    _.chain

  • Parameters

    • value: string

    Returns StringChain

    _.chain

  • Parameters

    • value: undefined | null | string

    Returns StringNullableChain

    _.chain

  • Type Parameters

    • T extends (...args: any[]) => any

    Parameters

    • value: T

    Returns FunctionChain<T>

    _.chain

  • Type Parameters

    • T = any

    Parameters

    • value: undefined | null | List<T>

    Returns CollectionChain<T>

    _.chain

  • Type Parameters

    • T extends object

    Parameters

    • value: undefined | null | T

    Returns ObjectChain<T>

    _.chain

  • Type Parameters

    • T

    Parameters

    • value: T

    Returns PrimitiveChain<T>

    _.chain