6 lines
216 B
JavaScript
6 lines
216 B
JavaScript
'use strict';
|
|
var hasOwn = require('../internals/has-own-property');
|
|
|
|
module.exports = function (descriptor) {
|
|
return descriptor !== undefined && (hasOwn(descriptor, 'value') || hasOwn(descriptor, 'writable'));
|
|
};
|