Spaces:
Configuration error
Configuration error
Download node_modules/es-abstract/2019/IsConcatSpreadable.js from W404NET/Telegram-Chat-Bot: direct link, hf CLI and curl.
- Browser
- Download file 621 Bytes
-
https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/es-abstract/2019/IsConcatSpreadable.js
- Command line
-
hf download hf://spaces/W404NET/Telegram-Chat-Bot/node_modules/es-abstract/2019/IsConcatSpreadable.js
-
curl -L -o IsConcatSpreadable.js https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/es-abstract/2019/IsConcatSpreadable.js
621 Bytes
| ; | |
| var GetIntrinsic = require('get-intrinsic'); | |
| var $isConcatSpreadable = GetIntrinsic('%Symbol.isConcatSpreadable%', true); | |
| var Get = require('./Get'); | |
| var IsArray = require('./IsArray'); | |
| var ToBoolean = require('./ToBoolean'); | |
| var Type = require('./Type'); | |
| // https://262.ecma-international.org/6.0/#sec-isconcatspreadable | |
| module.exports = function IsConcatSpreadable(O) { | |
| if (Type(O) !== 'Object') { | |
| return false; | |
| } | |
| if ($isConcatSpreadable) { | |
| var spreadable = Get(O, $isConcatSpreadable); | |
| if (typeof spreadable !== 'undefined') { | |
| return ToBoolean(spreadable); | |
| } | |
| } | |
| return IsArray(O); | |
| }; | |