Skip to content

Function: clearSave()

clearSave(key?): boolean

Defined in: save.ts:101

Clears local data.

Parameters

key?

string

The key of the saved data. If not defined, clears all the saved data.

Returns

boolean

Returns true if the key was valid and the data has been cleared successfully.

Example

ts
facile.clearSave('player');