From bbff7403fbf46f9ad92240ac213df8d30ef31b64 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Sep 2018 02:56:13 +0200 Subject: update packages --- node_modules/is-data-descriptor/index.js | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) (limited to 'node_modules/is-data-descriptor/index.js') diff --git a/node_modules/is-data-descriptor/index.js b/node_modules/is-data-descriptor/index.js index d4d09c92a..cfeae3619 100644 --- a/node_modules/is-data-descriptor/index.js +++ b/node_modules/is-data-descriptor/index.js @@ -1,22 +1,22 @@ /*! * is-data-descriptor * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. + * Copyright (c) 2015-2017, Jon Schlinkert. + * Released under the MIT License. */ 'use strict'; var typeOf = require('kind-of'); -// data descriptor properties -var data = { - configurable: 'boolean', - enumerable: 'boolean', - writable: 'boolean' -}; +module.exports = function isDataDescriptor(obj, prop) { + // data descriptor properties + var data = { + configurable: 'boolean', + enumerable: 'boolean', + writable: 'boolean' + }; -function isDataDescriptor(obj, prop) { if (typeOf(obj) !== 'object') { return false; } @@ -46,10 +46,4 @@ function isDataDescriptor(obj, prop) { } } return true; -} - -/** - * Expose `isDataDescriptor` - */ - -module.exports = isDataDescriptor; +}; -- cgit v1.2.3