rapid-sdk
    Preparing search index...

    Function utilIterable

    • Converts a single or multiple values into something iterable that can be iterated over with for..of

      Type Parameters

      • T

      Parameters

      Returns Iterable<T>

      An iterable (Array or Set)

      utilIterable([1, 2, 3])     // returns [1, 2, 3]
      utilIterable(new Set([1])) // returns Set([1])
      utilIterable(5) // returns [5]