medikoo / es5-ext

ECMAScript extensions (with respect to upcoming ECMAScript features)
ISC License
174 stars 85 forks source link

Make safeToString return null on non-stringifiable values #84

Open medikoo opened 6 years ago

medikoo commented 6 years ago

Currently it returns <Non-coercible to string value> string, but the resolution type and format should rather be left to consumer of the util.

It affects sprintf-kit which wants to customize that string