How to use the es6-set.apply function in es6-set

To help you get started, we’ve selected a few es6-set examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github timoxley / graphs / index.js View on Github external
function Graph() {
  Set.apply(this, arguments)
  this.linkMap = new Map()

  aspectify(this)
  this.guard('add', function() {
    return arguments.length
  })
  this.before('add', function fn() {
    fn.args = fn.args
    .filter(function(item) {
      return item && !this.has(item)
    }, this)
  })

  this.after('delete', function() {
    slice(arguments).forEach(function(item) {
      this.unlinkAll(item)

es6-set

ECMAScript6 Set polyfill

ISC
Latest version published 2 years ago

Package Health Score

67 / 100
Full package analysis