Wednesday, December 28, 2016

Object.create(null) & isNaN()

isNaN(Object.create(null)); // throw an error: Number expected

The Number.isNaN() method determines whether the passed value is NaN. It is a more robust version of the original, global isNaN().
@reference_1_stackoverflow
@reference_2_mozilla

No comments:

Post a Comment