(n)
| 906 | } |
| 907 | |
| 908 | function toInteger(n) { |
| 909 | n = +n; |
| 910 | if (n !== n) { // isNaN |
| 911 | n = 0; |
| 912 | } else if (n !== 0 && n !== (1/0) && n !== -(1/0)) { |
| 913 | n = (n > 0 || -1) * Math.floor(Math.abs(n)); |
| 914 | } |
| 915 | return n; |
| 916 | } |
| 917 | |
| 918 | function isPrimitive(input) { |
| 919 | var type = typeof input; |