src/nails.js
function lazy(key, get) {
  const uninitialized = {};
  let _val = uninitialized;
  Object.defineProperty(exports, key, {
    get() {
      if (_val === uninitialized) {
        _val = get();
      }
      return _val;
    },
  });
}
function lazy(key, get) {
  const uninitialized = {};
  let _val = uninitialized;
  Object.defineProperty(exports, key, {
    get() {
      if (_val === uninitialized) {
        _val = get();
      }
      return _val;
    },
  });
}
function lazy ( key , get ) { const uninitialized = { } ; let _val = uninitialized ; Object . defineProperty ( exports , key , { get ( ) { if ( _val === uninitialized ) { _val = get ( ) ; } return _val ; } , } ) ; }
Define a lazy property on `exports` that
retrieves the value when accessed
the first time
@private
@param {string} key The key to add
@param {Function} get The function to generate the value
Define a lazy property on exports that retrieves the value when accessed the first time