* 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)
| 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 | |
| 246 | export namespace Names { |
no outgoing calls
no test coverage detected