You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
declarefunctionhasOwnProperty<PextendsPropertyKey>(target: {},property: P): target is {[KinP]: unknown};declareconstarrayLikeOrIterable: ArrayLike<any>|Iterable<any>;if(hasOwnProperty(arrayLikeOrIterable,'length')){arrayLikeOrIterable;// $ExpectType ArrayLike<any>}
Expected: arrayLikeOrIterable narrows to ArrayLike<any>
Actual: It doesn't, so instead the compiler intersects the declared type with { length: unknown }.