(n)
| 6892 | } |
| 6893 | |
| 6894 | function toInteger(n) { |
| 6895 | n = +n; |
| 6896 | if (n !== n) { // isNaN |
| 6897 | n = 0; |
| 6898 | } else if (n !== 0 && n !== (1/0) && n !== -(1/0)) { |
| 6899 | n = (n > 0 || -1) * Math.floor(Math.abs(n)); |
| 6900 | } |
| 6901 | return n; |
| 6902 | } |
| 6903 | |
| 6904 | function isPrimitive(input) { |
| 6905 | var type = typeof input; |