Quantumbraid's picture
download
raw
536 Bytes
"use strict";
const pattern = /-(\w|$)/g;
const callback = (dashChar, char) => char.toUpperCase();
const camelCaseCSS = property =>
{
property = property.toLowerCase();
// NOTE :: IE8's "styleFloat" is intentionally not supported
if (property === "float")
{
return "cssFloat";
}
// Microsoft vendor-prefixes are uniquely cased
else if (property.startsWith("-ms-"))
{
return property.substr(1).replace(pattern, callback);
}
else
{
return property.replace(pattern, callback);
}
};
module.exports = camelCaseCSS;

Xet Storage Details

Size:
536 Bytes
·
Xet hash:
34a8ccdef7e8efc428de21dafecc38506df82aeb61d4a3f275828a9079d0750e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.