[JavaScript] `in` 关键字

The operator in can be used to test whether an object has a certain property.

var person  = {}
person.name = "buhaiqing"
console.debug( "name" in person) // return : true
原文地址:https://www.cnblogs.com/buhaiqing/p/2801040.html