Download web/node_modules/is-number/index.js from Amitkumar001/Law_Slm: direct link, hf CLI and curl.
- Browser
- Download file 411 Bytes
-
https://huggingface.co/Amitkumar001/Law_Slm/resolve/main/web/node_modules/is-number/index.js
- Command line
-
hf download hf://Amitkumar001/Law_Slm/web/node_modules/is-number/index.js
-
curl -L -o index.js https://huggingface.co/Amitkumar001/Law_Slm/resolve/main/web/node_modules/is-number/index.js
411 Bytes
| /*! | |
| * is-number <https://github.com/jonschlinkert/is-number> | |
| * | |
| * Copyright (c) 2014-present, Jon Schlinkert. | |
| * Released under the MIT License. | |
| */ | |
| ; | |
| module.exports = function(num) { | |
| if (typeof num === 'number') { | |
| return num - num === 0; | |
| } | |
| if (typeof num === 'string' && num.trim() !== '') { | |
| return Number.isFinite ? Number.isFinite(+num) : isFinite(+num); | |
| } | |
| return false; | |
| }; | |