containsKeyChecks whether a map contains an key.containsKey(targetMap, key)CopyParameters#targetMap: map to searchkey: string key to search for in targetMapReturns#Boolean indicating the resultExample#orders = {phones: 10, bags: 20}assertTrue(containsKey(orders, 'phones'))Copy