@tsdotnet/type - v1.2.7
    Preparing search index...

    Function asIterable

    Ensures an object is iterable if possible. Returns null if unable to convert to iterable.

    • Ensures an object is iterable if possible. Returns null if unable to convert to iterable.

      Parameters

      • instance: string

      Returns null

    • Ensures an object is iterable if possible. Returns null if unable to convert to iterable.

      Parameters

      • instance: string
      • allowString: false

      Returns null

    • Ensures an object is iterable if possible. Returns null if unable to convert to iterable.

      Parameters

      • instance: string
      • allowString: true

      Returns string

    • Ensures an object is iterable if possible. Returns null if unable to convert to iterable.

      Type Parameters

      • T

      Parameters

      • instance: Iterable<T, any, any> | ArrayLike<T>
      • OptionalallowString: boolean

      Returns null | Iterable<T, any, any>

    • Ensures an object is iterable if possible. Returns null if unable to convert to iterable.

      Type Parameters

      • T = unknown

      Parameters

      • instance: unknown
      • OptionalallowString: boolean

      Returns null | Iterable<T, any, any>