emptyObject.js.flow 335 B

123456789101112131415161718
  1. /**
  2. * Copyright (c) 2013-present, Facebook, Inc.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @providesModule emptyObject
  8. */
  9. 'use strict';
  10. const emptyObject = {};
  11. if (__DEV__) {
  12. Object.freeze(emptyObject);
  13. }
  14. module.exports = emptyObject;