frontend/.pnpm-store/v3/files/8e/4f0f3adf6a23327986a38d34b06ddce715b0129340fa0f7afeced147d65765001c5bb126c31e8352686a0c0dac04c92b4e6d72fa6b2e593ac6d2b0bd0951e6

13 lines
318 B
Plaintext

"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");
}
};