- 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
653 B
JavaScript
17 lines
653 B
JavaScript
'use strict';
|
|
var call = require('../internals/function-call');
|
|
var hasOwn = require('../internals/has-own-property');
|
|
var isPrototypeOf = require('../internals/object-is-prototype-of');
|
|
var regExpFlagsDetection = require('../internals/regexp-flags-detection');
|
|
var regExpFlagsGetterImplementation = require('../internals/regexp-flags');
|
|
|
|
var RegExpPrototype = RegExp.prototype;
|
|
|
|
module.exports = regExpFlagsDetection.correct ? function (it) {
|
|
return it.flags;
|
|
} : function (it) {
|
|
return (!regExpFlagsDetection.correct && isPrototypeOf(RegExpPrototype, it) && !hasOwn(it, 'flags'))
|
|
? call(regExpFlagsGetterImplementation, it)
|
|
: it.flags;
|
|
};
|