object.html revision d4dbc3afb5bb9cfd13490b358dc37bf951104ca7
<html>
<head>
<title>YUI 3.0</title>
<script type="text/javascript">
(function() {
var Y = YUI().use('*');
var newobj = {};
var o = {
str: "str",
arr: [
"array1",
true,
{ obj: "obj"},
["array2"]
],
dat: new Date(),
fn: function() {
},
//win: window,
nada: null
};
var O = Y.Object;
Y.log(O.hasValue(o, 'str'));
Y.log(O.hasValue(o, 'arr'));
})();
</script>
<body>
<input id="addButton" type="button" value="Add link" />
</body>
</html>