UNPKG

@wordpress/core-data

Version:
18 lines (17 loc) 470 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = isRawAttribute; /** * Checks whether the attribute is a "raw" attribute or not. * * @param {Object} entity Entity record. * @param {string} attribute Attribute name. * * @return {boolean} Is the attribute raw */ function isRawAttribute(entity, attribute) { return (entity.rawAttributes || []).includes(attribute); } //# sourceMappingURL=is-raw-attribute.js.map