source: node_modules/es-toolkit/dist/compat/util/toNumber.mjs

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 185 bytes
Line 
1import { isSymbol } from '../predicate/isSymbol.mjs';
2
3function toNumber(value) {
4 if (isSymbol(value)) {
5 return NaN;
6 }
7 return Number(value);
8}
9
10export { toNumber };
Note: See TracBrowser for help on using the repository browser.