@szilanor/stream
    Preparing search index...

    Function entries

    • Returns a Stream that yields the entries of the specified object.

      Type Parameters

      • T extends object

        Type of items in the Stream.

      Parameters

      • entry: T

        Object to create the Stream from.

      Returns Stream<[keyof T, T[keyof T]]>

      Stream that yields the entries of the specified object.

      const result = entries({ a: 1, b: 2 });
      console.log([...result]); // [["a", 1], ["b", 2]]