( obj )
| 544 | } ); |
| 545 | |
| 546 | function isArrayLike( obj ) { |
| 547 | |
| 548 | // Support: real iOS 8.2 only (not reproducible in simulator) |
| 549 | // `in` check used to prevent JIT error (gh-2145) |
| 550 | // hasOwn isn't used here due to false negatives |
| 551 | // regarding Nodelist length in IE |
| 552 | var length = !!obj && "length" in obj && obj.length, |
| 553 | type = toType( obj ); |
| 554 | |
| 555 | if ( isFunction( obj ) || isWindow( obj ) ) { |
| 556 | return false; |
| 557 | } |
| 558 | |
| 559 | return type === "array" || length === 0 || |
| 560 | typeof length === "number" && length > 0 && ( length - 1 ) in obj; |
| 561 | } |
| 562 | |
| 563 | |
| 564 | function nodeName( elem, name ) { |
no test coverage detected