Skip to content

Commit

Permalink
feat: improve non-coercible string representation
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Mar 22, 2018
1 parent 2e4512d commit 20bfb78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion safe-to-string.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ module.exports = function (value) {
if (value && isCallable(value.toString)) return value.toString();
return String(value);
} catch (e) {
return "[Non-stringifiable value]";
return "[Non-coercible (to string) value]";
}
};

0 comments on commit 20bfb78

Please sign in to comment.