@mirei/ts-collections
    Preparing search index...

    Function empty

    • Creates an empty sequence.

      Type Parameters

      • TElement

        Type of elements that the returned sequence can produce.

      Returns IEnumerable<TElement>

      A reusable, cached empty sequence.

      The returned instance is immutable and can be shared safely across callers.

      const emptySequence = empty<number>();
      console.log(emptySequence.toArray()); // []