tact-lang / tact-docs

Tact main documentation
https://docs.tact-lang.org
54 stars 41 forks source link

How do I check if my map is empty? #188

Closed anton-trunov closed 5 months ago

anton-trunov commented 5 months ago

Currently, the way to do it is to compare the map with null.

novusnota commented 5 months ago

And now we have isEmpty() method / extension function for maps, which has to be documented here in the first place and comparison with null shall be marked as legacy or simply less stressed