let res = {
vasis: function(location){
let cell = document.querySelector(location);
console.log(cell)
}
}
res.vasis('.mama')
res.vasis('.10')
<div class="mama">111</div>
<tr>
<td class="10"></td>
</tr>
let res = {
vasis: function(location){
let cell = document.querySelector(location);
console.log(cell)
}
}
res.vasis('.mama')
res.vasis('.s10')
<div class="mama">111</div>
<tr>
<td class="s10"></td>
</tr>