dist/melonjs.js
function remove(key) {
           if (!isReserved(key)) {
             if (typeof data[key] !== "undefined") {
               delete data[key];

               if (me.device.localStorage === true) {
                 localStorage.removeItem("me.save." + key);
                 localStorage.setItem("me.save", JSON.stringify(Object.keys(data)));
               }
             }
           }
         }
function remove(key) {
           if (!isReserved(key)) {
             if (typeof data[key] !== "undefined") {
               delete data[key];

               if (me.device.localStorage === true) {
                 localStorage.removeItem("me.save." + key);
                 localStorage.setItem("me.save", JSON.stringify(Object.keys(data)));
               }
             }
           }
         }
function remove ( key ) { if ( ! isReserved ( key ) ) { if ( typeof data [ key ] !== "undefined" ) { delete data [ key ] ; if ( me . device . localStorage === true ) { localStorage . removeItem ( "me.save." + key ) ; localStorage . setItem ( "me.save" , JSON . stringify ( Object . keys ( data ) ) ) ; } } } }
Remove a key from localStorage
@name remove
@memberOf me.save
@function
@param {String} key key to be removed
@example
// Remove the "score" key from localStorage
me.save.remove("score");
Remove a key from localStorage