What does the !! do?
Dan G. Switzer, II wrote:
>
>>Please add:
>>
>> StructKeyExists: function(s,k){
>> for(var n in s){
>> if (n == k) return true;
>> }
>> return false;
>> },
>>
>>
>>Shall we post additions and updates here?
>
> This would be much more efficient:
>
> StructKeyExists: function(s,k){
> return !!s[k];
> },
>
> However, it's also important to remember that a ColdFusion "structure"
> isn't
> the exact same thing as a JavaScript Object.
>
> -Dan
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
--
View this message in context:
http://www.nabble.com/NEW-Plug-in%3A-cfjs-%28ColdFusionJavaScript%29-tf3386950.html#a9465975
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/