MCPcopy
hub / github.com/webpack/webpack / compare

Method compare

lib/javascript/JavascriptParser.js:5349–5350  ·  view source on GitHub ↗
(comment, needle)

Source from the content-addressed store, hash-verified

5347 * @returns {number} compared
5348 */
5349 const compare = (comment, needle) =>
5350 /** @type {Range} */ (comment.range)[0] - needle;
5351 const comments = /** @type {Comment[]} */ (this.comments);
5352 let idx = binarySearchBounds.ge(comments, rangeStart, compare);
5353 /** @type {Comment[]} */

Callers 2

bufferArraysEqualFunction · 0.80
getOrdFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected