(length)
| 1924 | } |
| 1925 | |
| 1926 | function coerce (length) { |
| 1927 | // Coerce length to a number (possibly NaN), round up |
| 1928 | // in case it's fractional (e.g. 123.456) then do a |
| 1929 | // double negate to coerce a NaN to 0. Easy, right? |
| 1930 | length = ~~Math.ceil(+length) |
| 1931 | return length < 0 ? 0 : length |
| 1932 | } |
| 1933 | |
| 1934 | function isArray (subject) { |
| 1935 | return (Array.isArray || function (subject) { |