obj.length 和 +obj.length

2017/07/10 Language

js

obj.length === +obj.length

obj.length === +obj.length 等同于 type obj.length === ‘number’ && !isNaN(obj.length)

Search

    Post Directory