mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
25 lines
768 B
JavaScript
25 lines
768 B
JavaScript
|
"use strict";
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
|
||
|
var _isCustomProp = require("./isCustomProp");
|
||
|
|
||
|
var _isCustomProp2 = _interopRequireDefault(_isCustomProp);
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||
|
|
||
|
const hasInherit = node => node.value.toLowerCase().includes("inherit");
|
||
|
const hasInitial = node => node.value.toLowerCase().includes("initial");
|
||
|
const hasUnset = node => node.value.toLowerCase().includes("unset");
|
||
|
|
||
|
exports.default = (prop, includeCustomProps = true) => {
|
||
|
if (includeCustomProps && (0, _isCustomProp2.default)(prop)) {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
return !hasInherit(prop) && !hasInitial(prop) && !hasUnset(prop);
|
||
|
};
|
||
|
|
||
|
module.exports = exports["default"];
|