Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix(forEach): refined treatment of objects with numeric length property #1938

Closed

Commits on Feb 9, 2013

  1. fix(forEach): differentiate objects with a length property and array …

    …like objects
    
    fixes angular#1840
    when an object has a numeric length property:
    if an object has a length property with a number value of 0, it will
    be considered like an array like object
    if the value is positive and the object looks like a full dense array
    with a property named as length minus one, it will be considered
    like an array like object
    
    Signed-off-by: Gonzalo Ruiz de Villa <[email protected]>
    gonzaloruizdevilla authored and Gonzalo Ruiz de Villa committed Feb 9, 2013
    Configuration menu
    Copy the full SHA
    f24aa5c View commit details
    Browse the repository at this point in the history