/
lostSun
/
project-client-server-apps
Обзор
Документация
Войти
/
lostSun
/
project-client-server-apps
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/unicode-match-property-ecmascript/index.js
16 строк
449 B
1lostsun
initial commit
05 май 2025, 11:35
05 май 2025, 11:35
fe8f535
Код
Авторство
О чём код?
'use strict'; const canonicalProperties = require('unicode-canonical-property-names-ecmascript'); const propertyAliases = require('unicode-property-aliases-ecmascript'); const matchProperty = function(property) { if (canonicalProperties.has(property)) { return property; } if (propertyAliases.has(property)) { return propertyAliases.get(property); } throw new Error(`Unknown property: ${ property }`); }; module.exports = matchProperty;