Skip to content

$map.has

Description

Indique si la clé existe dans la map

Syntaxe

$map.has( map , key )

Paramètres

map map
Map à traiter
key string
Nom de clé à rechercher

Retour

Retourne true si la clé existe, sinon false

Exemple

1
$map.has(m, "name");