Not soley related to RMMV or RMMZ this is just a javascript question...
I don't even really know how to properly ask this question but I'll try my best to explain my desired outcome.
Okay... so say I have a function that I'm aliasing but I don't know how many parameters it can take or the variable names that were originally given to it.
just to simplify things I'll try to make an example:
Source Function:
How to find the parameters variable names sent with a function but outside of the function?
Like in string format, or an array of strings?
So like to return ['testA', 'testB', 'testC']
I'm asking this so that I can alias it and still retain the correct variable names that were passed to it without knowing what the original function used for names.
Is this possible to do?
Thanks for reading and any insight help you can provide. 🙂
I don't even really know how to properly ask this question but I'll try my best to explain my desired outcome.
Okay... so say I have a function that I'm aliasing but I don't know how many parameters it can take or the variable names that were originally given to it.
just to simplify things I'll try to make an example:
Source Function:
JavaScript:
var doStuffA = function(testA, testB, testC){
// do stuff
};
How to find the parameters variable names sent with a function but outside of the function?
Like in string format, or an array of strings?
So like to return ['testA', 'testB', 'testC']
I'm asking this so that I can alias it and still retain the correct variable names that were passed to it without knowing what the original function used for names.
Is this possible to do?
Thanks for reading and any insight help you can provide. 🙂