@szilanor/stream
    Preparing search index...

    Function keys

    • Returns a Stream that yields the keys 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>

      Stream that yields the keys of the specified object.

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