The Object isFrozen() static method determines if an object is frozen.

    
    const account = {
        amount: 100
    }

    console.log(Object.isFrozen(account));
    // false

    Object.freeze(account);

    console.log(Object.isFrozen(account));
    // true