Should we add some identifier related helpers?
It might be nice to have identifier matcher and validator helpers. Not sure how often they are needed.
E.g.
https://github.com/sindresorhus/identifier-regex
https://github.com/sindresorhus/is-identifier
BTW, I was looking at getFunctionParams and it is matching on \w+ which would include invalid identifiers. Not sure if it really matters, probably not.
getFunctionParams("function test(42) {}");
getFunctionParams("function test(case) {}");
Should we add some identifier related helpers?
It might be nice to have identifier matcher and validator helpers. Not sure how often they are needed.
E.g.
https://github.com/sindresorhus/identifier-regex
https://github.com/sindresorhus/is-identifier
BTW, I was looking at
getFunctionParamsand it is matching on\w+which would include invalid identifiers. Not sure if it really matters, probably not.