gruss in die runde,
Mir käme !isNaN() in den Sinn.
und ich wuerde den typ vorher noch
zwangskonvertieren und zusaetzlich
auf seine endlichkeit ueberpruefen:
var isKindOfNumber = (function (obj) {
obj = Number(obj);
return (!isNaN(obj) && isFinite(obj));
});
so long - peterS. - pseliger@gmx.net
--
»Because objects in JavaScript are so flexible, you will want to think differently about class hierarchies.
Deep hierarchies are inappropriate. Shallow hierarchies are efficient and expressive.« - Douglas Crockford
ie:( fl:) br:> va:( ls:& fo:) rl:) n3;} n4:} ss:} de:µ js:} mo:? zu:]
»Because objects in JavaScript are so flexible, you will want to think differently about class hierarchies.
Deep hierarchies are inappropriate. Shallow hierarchies are efficient and expressive.« - Douglas Crockford
ie:( fl:) br:> va:( ls:& fo:) rl:) n3;} n4:} ss:} de:µ js:} mo:? zu:]