Current Folder
This commit is contained in:
1 parent
8b3382289b
commit
cfcada880d
4379 files changed
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
|
||||
var isCallable = require("./object/is-callable");
|
||||
|
||||
module.exports = function (value) {
|
||||
try {
|
||||
if (value && isCallable(value.toString)) return value.toString();
|
||||
return String(value);
|
||||
} catch (e) {
|
||||
return "<Non-coercible to string value>";
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user