factoids.js
function (key) {
            const value = db.get(key);

            if (!value) {
                db.set(key, {
                    frozen: true
                });
                return;
            }

            db.set(key, {
                intent: value.intent,
                message: value.message,
                editor: value.editor,
                time: value.time,
                frozen: true
            });

            return true;
        }
function (key) {
            const value = db.get(key);

            if (!value) {
                db.set(key, {
                    frozen: true
                });
                return;
            }

            db.set(key, {
                intent: value.intent,
                message: value.message,
                editor: value.editor,
                time: value.time,
                frozen: true
            });

            return true;
        }
function ( key ) { const value = db . get ( key ) ; if ( ! value ) { db . set ( key , { frozen : true } ) ; return ; } db . set ( key , { intent : value . intent , message : value . message , editor : value . editor , time : value . time , frozen : true } ) ; return true ; }
String -> Boolean
String - > Boolean