@atlaskit/eslint-plugin-design-system
Version:
The essential plugin for use with the Atlassian Design System.
19 lines (18 loc) • 373 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isZero = void 0;
var isZero = exports.isZero = function isZero(value) {
if (typeof value === 'string') {
if (value === '0px' || value === '0') {
return true;
}
}
if (typeof value === 'number') {
if (value === 0) {
return true;
}
}
return false;
};