MCPcopy
hub / github.com/RaspberryPiFoundation/blockly / equals

Method equals

packages/blockly/core/names.ts:240–243  ·  view source on GitHub ↗

* Do the given two entity names refer to the same entity? * Blockly names are case-insensitive. * * @param name1 First name. * @param name2 Second name. * @returns True if names are the same.

(name1: string, name2: string)

Source from the content-addressed store, hash-verified

238 * @returns True if names are the same.
239 */
240 static equals(name1: string, name2: string): boolean {
241 // name1.localeCompare(name2) is slower.
242 return name1.toLowerCase() === name2.toLowerCase();
243 }
244}
245
246export namespace Names {

Callers 13

removeIconMethod · 0.45
removeIconMethod · 0.45
hasIconMethod · 0.45
getIconMethod · 0.45
getVariableMethod · 0.45
isNameUsedFunction · 0.45
getCallersFunction · 0.45
blockIsModernCallerForFunction · 0.45
getDefinitionFunction · 0.45
procedures.tsFile · 0.45
names_test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected