jozefizso / generator-license

Yeoman Generator - License
MIT License
59 stars 20 forks source link

Undefined or null #87

Closed millette closed 6 years ago

millette commented 6 years ago

Like #84 but less hacky :-)

Finally figured out how to use this properly with my own generator.

On my end, instead of type: String, I'm using this function:

const likeString = (str) => String(str || '')

This way, false doesn't get converted to the string "false".