MCPcopy Index your code
hub / github.com/nodejs/node / areSimilarRegExps

Function areSimilarRegExps

lib/internal/util/comparisons.js:149–153  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

147
148// Check if they have the same source and flags
149function areSimilarRegExps(a, b) {
150 return a.source === b.source &&
151 a.flags === b.flags &&
152 a.lastIndex === b.lastIndex;
153}
154
155function isPartialUint8Array(a, b) {
156 const lenA = getByteLength(a);

Callers 1

objectComparisonStartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected