@resk/core
Version:
An innovative TypeScript framework that empowers developers to build applications with a fully decorator-based architecture for efficient resource management. By combining the power of decorators with a resource-oriented design, DecorRes enhances code cla
1 lines • 269 B
JavaScript
;function n(r){return !!(r==null||typeof r=="undefined"||typeof r=="string"&&r===""||Array.isArray(r)&&!r.length)}var f=r=>{if(n(r))return NaN;if(typeof r=="number")return r;try{let t=Number(r);return isNaN(t)?NaN:t}catch(t){}return NaN};exports.toNumber=f;