Files
ola5doc/sys/node_modules/es5-ext/object/validate-stringifiable.js
T

10 lines
182 B
JavaScript

'use strict';
module.exports = function (stringifiable) {
try {
return String(stringifiable);
} catch (e) {
throw new TypeError("Passed argument cannot be stringifed");
}
};