Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
276 B

  1. 'use strict';
  2. const is = require('@sindresorhus/is');
  3. module.exports = function deepFreeze(object) {
  4. for (const [key, value] of Object.entries(object)) {
  5. if (is.plainObject(value) || is.array(value)) {
  6. deepFreeze(object[key]);
  7. }
  8. }
  9. return Object.freeze(object);
  10. };