some usefull javascript
Type Detection
Since JavaScript is a loosely-typed language, it is sometimes necessary to examine an object to determine its type. (This is sometimes necessary in strongly typed languages as well.) JavaScript provides a typeof operator to facilitate this, but typeof has problems. We are better off to wrap typeof in a set of global functions.
[via crockford]
Since JavaScript is a loosely-typed language, it is sometimes necessary to examine an object to determine its type. (This is sometimes necessary in strongly typed languages as well.) JavaScript provides a typeof operator to facilitate this, but typeof has problems. We are better off to wrap typeof in a set of global functions.
[via crockford]
Matix - 14. Jan, 12:58
0 Kommentare - Kommentar verfassen - 0 Trackbacks