code: function(list){
  		var type = typeof list;
  		if(type === "string" || Array.isArray(list)) {
  			return true;
  		}
  		var length = list && (type !== 'boolean' && type !== 'number' && "length" in list) && list.length;
  
  		// var length = "length" in obj && obj.length;
  		return typeof list !== "function" &&
  			( length === 0 || typeof length === "number" && length > 0 && ( length - 1 ) in list );
  	}
docs: The `in` check is from jQuery’s fix for an iOS 8 64-bit JIT object length bug: https://github.com/jquery/jquery/pull/2185