domtronn / ramda-suggest

🐏 🤔 - A library to help suggest functions based on input and desired output.
MIT License
24 stars 1 forks source link

Throws without arguments #1

Closed raine closed 7 years ago

raine commented 7 years ago
% ramda-suggest                                                                                                                                      
/Users/raine/.nvm/versions/node/v8.1.1/lib/node_modules/ramda-suggest/bin/ramda-suggest.js:21
if (/\(.*?\) => .*/.test(output.toString())) {
                               ^

TypeError: Cannot read property 'toString' of undefined
    at Object.<anonymous> (/Users/raine/.nvm/versions/node/v8.1.1/lib/node_modules/ramda-suggest/bin/ramda-suggest.js:21:32)
    at Module._compile (module.js:569:30)
domtronn commented 7 years ago

Thanks for the find! :)

Hopefully that should be fixed now... Problems with both casting undefined to a string and default usage if not enough arguments given