CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
index-es5.js25 linesDownload Raw Back to camelcase-css
1"use strict";2 3var pattern = /-(\w|$)/g;4 5var callback = function callback(dashChar, char) {6	return char.toUpperCase();7};8 9var camelCaseCSS = function camelCaseCSS(property) {10	property = property.toLowerCase();11 12	// NOTE :: IE8's "styleFloat" is intentionally not supported13	if (property === "float") {14		return "cssFloat";15	}16	// Microsoft vendor-prefixes are uniquely cased17	else if (property.charCodeAt(0) === 45&& property.charCodeAt(1) === 109&& property.charCodeAt(2) === 115&& property.charCodeAt(3) === 45) {18			return property.substr(1).replace(pattern, callback);19		} else {20			return property.replace(pattern, callback);21		}22};23 24module.exports = camelCaseCSS;25 
basant307/AI_Governance_Project · CoolFace