gkz / grasp

JavaScript structural search, replace, and refactor
http://graspjs.com
MIT License
1.28k stars 33 forks source link

How can I use replace to remove a named function declaration? #100

Open kristianmandrup opened 7 years ago

kristianmandrup commented 7 years ago

From the replace examples it was not clear how to match something and remove it in the output. I would assume I should use a filter somehow but which. Please add such an example to the docs. Thanks.

gkz commented 7 years ago

Replace it with empty string, but yes, docs could be better