UNPKG

sinon

Version:

JavaScript test spies, stubs and mocks.

12 lines (7 loc) 315 B
"use strict"; var getPropertyDescriptor = require("./get-property-descriptor"); function isPropertyConfigurable(obj, propName) { var propertyDescriptor = getPropertyDescriptor(obj, propName); return propertyDescriptor ? propertyDescriptor.configurable : true; } module.exports = isPropertyConfigurable;