Skip to content

Instantly share code, notes, and snippets.

View diiigle's full-sized avatar

Tobias Rittig, Ph.D. diiigle

View GitHub Profile
@diiigle
diiigle / setOps.js
Last active September 1, 2015 11:59 — forked from jabney/setOps.js
Async JavaScript set operations: union, intersection, difference, complement, and equals. Includes support for objects.
// setOps.js MIT License © 2014 James Abney http://github.com/jabney
// async.js modification © 2015 Tobias Rittig http://github.com/diiigle
// Set operations union, intersection, symmetric difference,
// relative complement, equals. Set operations are fast.
(function() {
'use strict';
var so = {};
// global on the server, window in the browser