Skip to content

no-array-prototype-extensions false positive Iterator.toArray() #2362

@sukima

Description

@sukima
function* test(): Generator<string> {
  yield 'foo';
  yield 'bar';
  yield 'baz';
  yield 'frotz';
}

test().take(2).toArray(); // => ["foo", "bar"]
// Don't use Ember's array prototype extensions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions