'use strict';

const toPropertyKey = require('./toPropertyKey.cjs');

function _defineProperty(e, r, t) {
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
    value: t,
    enumerable: true,
    configurable: true,
    writable: true
  }) : e[r] = t, e;
}

module.exports = _defineProperty;
