@pixi/react
Version:
Write PixiJS applications using React declarative style.
12 lines (9 loc) • 444 B
JavaScript
;
;
function isReadOnlyProperty(objectInstance, propertyKey) {
const prototype = Object.getPrototypeOf(objectInstance);
const propertyDescriptor = Object.getOwnPropertyDescriptor(prototype, propertyKey);
return !(typeof propertyDescriptor === "undefined" || propertyDescriptor.writable || propertyDescriptor.set);
}
exports.isReadOnlyProperty = isReadOnlyProperty;
//# sourceMappingURL=isReadOnlyProperty.js.map