Spaces:
Configuration error
Configuration error
Download node_modules/es-abstract/2020/LengthOfArrayLike.js from W404NET/Telegram-Chat-Bot: direct link, hf CLI and curl.
- Browser
- Download file 495 Bytes
-
https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/2e8e2424cb318e54001663c95785ca0ede9de23e/node_modules/es-abstract/2020/LengthOfArrayLike.js
- Command line
-
hf download hf://spaces/W404NET/Telegram-Chat-Bot@2e8e2424cb318e54001663c95785ca0ede9de23e/node_modules/es-abstract/2020/LengthOfArrayLike.js
-
curl -L -o LengthOfArrayLike.js https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/2e8e2424cb318e54001663c95785ca0ede9de23e/node_modules/es-abstract/2020/LengthOfArrayLike.js
495 Bytes
| ; | |
| var GetIntrinsic = require('get-intrinsic'); | |
| var $TypeError = GetIntrinsic('%TypeError%'); | |
| var Get = require('./Get'); | |
| var ToLength = require('./ToLength'); | |
| var Type = require('./Type'); | |
| // https://262.ecma-international.org/11.0/#sec-lengthofarraylike | |
| module.exports = function LengthOfArrayLike(obj) { | |
| if (Type(obj) !== 'Object') { | |
| throw new $TypeError('Assertion failed: `obj` must be an Object'); | |
| } | |
| return ToLength(Get(obj, 'length')); | |
| }; | |
| // TODO: use this all over | |