- Complete React app with 7 developer tools - JSON Tool with visual structured editor - Serialize Tool with visual structured editor - URL, Base64, CSV/JSON, Beautifier, Diff tools - Responsive navigation with dropdown menu - Dark/light mode toggle - Mobile-responsive design with sticky header - All tools working with copy/paste functionality
17 lines
738 B
JavaScript
17 lines
738 B
JavaScript
'use strict';
|
|
var $ = require('../internals/export');
|
|
var fails = require('../internals/fails');
|
|
var toIndexedObject = require('../internals/to-indexed-object');
|
|
var nativeGetOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
|
|
var DESCRIPTORS = require('../internals/descriptors');
|
|
|
|
var FORCED = !DESCRIPTORS || fails(function () { nativeGetOwnPropertyDescriptor(1); });
|
|
|
|
// `Object.getOwnPropertyDescriptor` method
|
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
$({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, {
|
|
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
|
|
return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);
|
|
}
|
|
});
|