This commit is contained in:
2026-11-02 12:42:04 +00:00
commit e4e28174bf
5498 changed files with 1735888 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
/**
* Checks whether given property name has vender prefix
*/
export function hasVendorPrefix(prop) {
return Boolean(getVendorPrefix(prop));
}
/**
* Get the vender prefix from given property name
*/
export function getVendorPrefix(prop) {
return /^-\w+-/u.exec(prop)?.[0] || '';
}
/**
* Strip the vender prefix
*/
export function stripVendorPrefix(prop) {
return prop.slice(getVendorPrefix(prop).length);
}