- 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
15 lines
561 B
JavaScript
15 lines
561 B
JavaScript
'use strict';
|
|
var hasOwn = require('../internals/has-own-property');
|
|
var defineBuiltIn = require('../internals/define-built-in');
|
|
var dateToPrimitive = require('../internals/date-to-primitive');
|
|
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
|
|
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
|
var DatePrototype = Date.prototype;
|
|
|
|
// `Date.prototype[@@toPrimitive]` method
|
|
// https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive
|
|
if (!hasOwn(DatePrototype, TO_PRIMITIVE)) {
|
|
defineBuiltIn(DatePrototype, TO_PRIMITIVE, dateToPrimitive);
|
|
}
|