no-prototype.js 220 B

123456789101112
  1. const foo = Object.create(null)
  2. foo.bar = 'baz'
  3. foo.baz = false
  4. module.exports = {
  5. foo: foo,
  6. bar: 1234,
  7. anonymous: new (class {})(),
  8. getConstructorName: function (value) {
  9. return value.constructor.name
  10. }
  11. }