ext5 Ext.isDefined() 这个方法怎么用

ext5 Ext.isDefined() 这个方法怎么用,里面传的什么参数

http://docs.sencha.com/extjs/5.1/5.1.1-apidocs/#!/api/Ext-method-isDefined
看源代码就知道了,只是typeof判断是否为undefined而已

       /**
         * Returns `true` if the passed value is defined.
         * @param {Object} value The value to test.
         * @return {Boolean}
         */
        isDefined: function(value) {
            return typeof value !== 'undefined';
        }
 var a;Ext.isDefined(a) //false
var b=1;Ext.isDefined(b) //true