Well, my point was JS operators, whether it be "==" or "===", would be easiest/best in the case of comparing two values.......
On Jan 20, 6:46 pm, Klaus Hartl <klaus.ha...@googlemail.com> wrote: > On 20 Jan., 20:06, MorningZ <morni...@gmail.com> wrote: > > > but just comparing "value a" to "value b", it doesn't get any easier/ > > better than JavaScript's native "==" operator > > Not so fast. Be aware that the equality operator may give you > unexpected results because of type conversion, example: > > 0 == '' // => true > 0 == false // => true > > Thus there may be cases to use strict equality: > > 0 === '' // => false > 0 === false // => false > > --Klaus