"use strict";const o=require("./typeof.cjs.js");function n(r,e){if(o(r)!="object"||!r)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var t=i.call(r,e);if(o(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}module.exports=n;
//# sourceMappingURL=toPrimitive.cjs.js.map
