JSFiddle - React, Tailwind, and code Playground

JavaScript

var obj = {
 name: 'Test',
 getName: function(someParam) {
  return this.name + ' ' + someParam;
 }
};

//ccall - своя реализация через applly

obj.getName.ccall = function (thisArg, ...args) {
		return this.apply(thisArg, args);
}

alert(obj.getName.ccall(obj , 'lol'));