8000 isArrayLike() breaks with string primitives · Issue #3713 · angular/angular.js · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
isArrayLike() breaks with string primitives #3713
Closed
@mernen

Description

@mernen

The isArrayLike test in 1.0 worked properly with any string values, returning true (since they can be indexed just like String objects and work with functions like Array.prototype.forEach). The new test in 1.2 (introduced by #3356) raises a TypeError, because the in operator cannot be used on a non-object.

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

      0