/
githubmirror
/
babel
Обзор
Документация
Войти
/
githubmirror
/
babel
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/runtime-integration/src/require-auto.cjs
14 строк
512 B
Nicolò Ribaudo
Improve `@babel/runtime` esm stability (#12883)
24 фев 2021, 22:04
Не верифицирован
24 фев 2021, 22:04
6a471de
Код
Авторство
О чём код?
const objectWithoutProperties = require("@babel/runtime/helpers/objectWithoutProperties"); console.log("================= require - auto ===================="); console.log("typeof objectWithoutProperties:", typeof objectWithoutProperties); console.log( "typeof objectWithoutProperties.default:", typeof objectWithoutProperties.default ); const obj = objectWithoutProperties( { a: 1, b: 2, c: 3, [Symbol.iterator]: 4, [Symbol.toStringTag]: 5 }, ["a", "c", Symbol.iterator] ); console.log("obj:", obj);