mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-04 04:40:05 +02:00
15 lines
271 B
JavaScript
15 lines
271 B
JavaScript
function hasSameValues(property) {
|
|
var firstValue = property.value[0][1];
|
|
var i, l;
|
|
|
|
for (i = 1, l = property.value.length; i < l; i++) {
|
|
if (property.value[i][1] != firstValue) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
module.exports = hasSameValues;
|