/
githubmirror
/
stackwise
Обзор
Документация
Войти
/
githubmirror
/
stackwise
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tooling/tailwind-config/node_modules/tailwindcss/lib/util/cloneDeep.js
22 строки
544 B
Silen Naihin
moving files to root
17 фев 2024, 21:26
17 фев 2024, 21:26
7f5dc43
Код
Авторство
О чём код?
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "cloneDeep", { enumerable: true, get: function() { return cloneDeep; } }); function cloneDeep(value) { if (Array.isArray(value)) { return value.map((child)=>cloneDeep(child)); } if (typeof value === "object" && value !== null) { return Object.fromEntries(Object.entries(value).map(([k, v])=>[ k, cloneDeep(v) ])); } return value; }