import r from"./_baseTrim.js";import t from"./isObject.js";import e from"./isSymbol.js";var i=r,f=t,o=e,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,n=/^0o[0-7]+$/i,u=parseInt;var m=function(r){if("number"==typeof r)return r;if(o(r))return NaN;if(f(r)){var t="function"==typeof r.valueOf?r.valueOf():r;r=f(t)?t+"":t}if("string"!=typeof r)return 0===r?r:+r;r=i(r);var e=s.test(r);return e||n.test(r)?u(r.slice(2),e?2:8):a.test(r)?NaN:+r};export default m;
//# sourceMappingURL=toNumber.js.map
