Skip to main content

blockly > Names > equals

Names.equals() method

Do the given two entity names refer to the same entity? Blockly names are case-insensitive.

Signature:

static equals(name1: string, name2: string): boolean;

Parameters

Parameter

Type

Description

name1

string

First name.

name2

string

Second name.

Returns:

boolean

True if names are the same.