Compare Revisions
Last modification
- Rev 648 2016-07-19 20:56:30
- Author: PointedEars
- Log message:
object.js: Fixed jsx.array.destructure()
/trunk/object.js |
2504,8 → 2504,9 |
*/ |
function jsx_array_isIndex (index) |
{ |
/* Exclude NaN and non-integers */ |
/* Exclude NaN (not equal to itself) and non-integers */ |
index = +index; |
|
return ((index == index) && (index % 1 === 0)); |
} |
|
2556,7 → 2557,7 |
var propertyName = properties[index]; |
if (propertyName != null) |
{ |
o[propertyName] = a[i]; |
o[propertyName] = a[index]; |
} |
} |
} |