var U = {
$: function(id) {
'use strict';
if(typeof id = 'string') {
return document.getElementById(id);
} // end of typeof
} // end of $() function
} // end U object
This is a rather simple question. The text says the $() function is a property of U, isn't this function technically a method and not a property?
Thanks,
Mark