diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
commit | bbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch) | |
tree | c58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/is-data-descriptor/index.js | |
parent | 003fb34971cf63466184351b4db5f7c67df4f444 (diff) |
update packages
Diffstat (limited to 'node_modules/is-data-descriptor/index.js')
-rw-r--r-- | node_modules/is-data-descriptor/index.js | 26 |
1 files changed, 10 insertions, 16 deletions
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 <https://github.com/jonschlinkert/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; +}; |