Current Folder
This commit is contained in:
1 parent
8b3382289b
commit
cfcada880d
4379 files changed
No files matched your search
-12
@@ -1,12 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var isCallable = require("./is-callable");
|
||||
|
||||
module.exports = function (stringifiable) {
|
||||
try {
|
||||
if (stringifiable && isCallable(stringifiable.toString)) return stringifiable.toString();
|
||||
return String(stringifiable);
|
||||
} catch (e) {
|
||||
throw new TypeError("Passed argument cannot be stringifed");
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user