Skip to content

Why return strings are iterators? #7

@jcubic

Description

@jcubic

Any reason why output strings are also iterators? Why can't they just be normal JavaScript Strings?

This breaks the API of vhtml.

This is the output I've got when I console log the output:

[String: '<ul><li>0</li><li>1</li><li>2</li><li>3</li><li>4</li><li>5</li><li>6</li><li>7</li><li>8</li><li>9</li></ul>'] {
  [length]: 109,
  _stringjsx_sanitized: true
}

It looks more like a String instance with additional properties, and not actually a string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions