Mirror: CSS prefixing helpers in less than 1KB ๐ŸŒˆ

Replace ternary to shorten implementation

Changed files
+3 -3
src
+3 -3
src/index.js
···
export const prefixProperty = prop => {
if (cache[prop]) return cache[prop];
-
return (cache[prop] = (msPrefixRe.test(prop) ? ms : 0)
-
| (mozPrefixRe.test(prop) ? moz : 0)
-
| (webkitPrefixRe.test(prop) ? webkit : 0));
+
return (cache[prop] = (ms * msPrefixRe.test(prop))
+
| (moz * mozPrefixRe.test(prop))
+
| (webkit * webkitPrefixRe.test(prop)));
};
export const prefixValue = (prop, value) => {