- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/is-data-descriptor/index.js
r59329aa re29cc2e 2 2 * is-data-descriptor <https://github.com/jonschlinkert/is-data-descriptor> 3 3 * 4 * Copyright (c) 2015 -2017, Jon Schlinkert.5 * Released under the MIT License.4 * Copyright (c) 2015, Jon Schlinkert. 5 * Licensed under the MIT License. 6 6 */ 7 7 … … 10 10 var typeOf = require('kind-of'); 11 11 12 module.exports = function isDataDescriptor(obj, prop) { 13 // data descriptor properties 14 var data = { 15 configurable: 'boolean', 16 enumerable: 'boolean', 17 writable: 'boolean' 18 }; 12 // data descriptor properties 13 var data = { 14 configurable: 'boolean', 15 enumerable: 'boolean', 16 writable: 'boolean' 17 }; 19 18 19 function isDataDescriptor(obj, prop) { 20 20 if (typeOf(obj) !== 'object') { 21 21 return false; … … 47 47 } 48 48 return true; 49 }; 49 } 50 51 /** 52 * Expose `isDataDescriptor` 53 */ 54 55 module.exports = isDataDescriptor;
Note:
See TracChangeset
for help on using the changeset viewer.