Mengatur Multiples Properties dengan Array
class Ky
{
constructor(method)
{
this.method = method;
const values = ['get','post', 'put', 'delete'];
for(const value of values)
{this[value] = function()
{
return new Ky("POST");
}
}
Javasper