Use shorthand property syntax for object literals JS-0240
Anti-pattern
Minor
5 months ago3 years old
 8214    union: function (e) {
 8215      return e
 8216    },
 8217    contains: function () { 8218      return !1 8219    } 8220  }),
 8221  (e.Set.prototype.contains = function (e) {
 8222    return !!this.elements[e]
 8211    intersect: function () {
 8212      return this
 8213    },
 8214    union: function (e) { 8215      return e 8216    }, 8217    contains: function () {
 8218      return !1
 8219    }
 8208    }
 8209  }),
 8210  (e.Set.empty = {
 8211    intersect: function () { 8212      return this 8213    }, 8214    union: function (e) {
 8215      return e
 8216    },
 8203    union: function (e) {
 8204      return e
 8205    },
 8206    contains: function () { 8207      return !0 8208    } 8209  }),
 8210  (e.Set.empty = {
 8211    intersect: function () {
 8200    intersect: function (e) {
 8201      return e
 8202    },
 8203    union: function (e) { 8204      return e 8205    }, 8206    contains: function () {
 8207      return !0
 8208    }