Revision: 40365
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 31, 2011 19:26 by pablo_PXL
Initial Code
function type(o){return o.call?"function":o.pop?"array":o instanceof Boolean?"boolean":+o==o?"number":o.charAt?"string":o.toString()=="[object Object]"?"object":"undefined"}
Initial URL
http://www.twitter.com/pablo_PXL
Initial Description
Guess the type of any object applying ducktyping
Initial Title
JavaScript Ducktyping
Initial Tags
javascript
Initial Language
JavaScript