Phaser API Documentation

  Version: 
has(key)

Description:

Checks if this cache contains an item matching the given key. This performs the same action as BaseCache.exists.

Parameters:

name type description
key string

The unique key of the item to be checked in this cache.

Returns:
Description:

Returns true if the cache contains an item matching the given key, otherwise false.

Type:
  • boolean
Since: 3.0.0
Source: src/cache/BaseCache.js (Line 74)