UNPKG

216 BJavaScriptView Raw
1'use strict';
2var hasOwn = require('../internals/has-own-property');
3
4module.exports = function (descriptor) {
5 return descriptor !== undefined && (hasOwn(descriptor, 'value') || hasOwn(descriptor, 'writable'));
6};