Skip to content

Commit

Permalink
prepare 0.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
clarketm committed May 17, 2018
1 parent 7f7784f commit 74a333f
Show file tree
Hide file tree
Showing 57 changed files with 274 additions and 1,091 deletions.
33 changes: 20 additions & 13 deletions dist/super.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -1485,10 +1485,6 @@ var BinaryTree = function () {
*/

var Heap = function () {
// static HeapType = {
// MIN: (a: Item, b: Item): number => a - b,
// MAX: (a: Item, b: Item): number => b - a
// };

/** @private */

Expand Down Expand Up @@ -1764,6 +1760,15 @@ var Heap = function () {
return Heap;
}();

Heap.HeapType = {
MIN: function MIN(a, b) {
return a - b;
},
MAX: function MAX(a, b) {
return b - a;
}
};

/**
*
* ListNode
Expand Down Expand Up @@ -2859,23 +2864,22 @@ var QueueNode = function () {

var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};

/** Detect free variable `global` from Node.js. */
var freeGlobal = _typeof(commonjsGlobal) == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;

var _freeGlobal = freeGlobal;

/** Detect free variable `self`. */
var freeSelf = (typeof self === 'undefined' ? 'undefined' : _typeof(self)) == 'object' && self && self.Object === Object && self;
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;

/** Used as a reference to the global object. */
var root = _freeGlobal || freeSelf || Function('return this')();

var _root = root;

/** Built-in value references. */
var _Symbol2 = _root.Symbol;
var Symbol$1 = _root.Symbol;

var _Symbol = _Symbol2;
var _Symbol = Symbol$1;

/** Used for built-in method references. */
var objectProto = Object.prototype;
Expand Down Expand Up @@ -2962,13 +2966,15 @@ function baseGetTag(value) {
if (value == null) {
return value === undefined ? undefinedTag : nullTag;
}
return symToStringTag$1 && symToStringTag$1 in Object(value) ? _getRawTag(value) : _objectToString(value);
return (symToStringTag$1 && symToStringTag$1 in Object(value))
? _getRawTag(value)
: _objectToString(value);
}

var _baseGetTag = baseGetTag;

function overArg(func, transform) {
return function (arg) {
return function(arg) {
return func(transform(arg));
};
}
Expand All @@ -2981,7 +2987,7 @@ var getPrototype = _overArg(Object.getPrototypeOf, Object);
var _getPrototype = getPrototype;

function isObjectLike(value) {
return value != null && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) == 'object';
return value != null && typeof value == 'object';
}

var isObjectLike_1 = isObjectLike;
Expand Down Expand Up @@ -3039,7 +3045,8 @@ function isPlainObject(value) {
return true;
}
var Ctor = hasOwnProperty$1.call(proto, 'constructor') && proto.constructor;
return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
return typeof Ctor == 'function' && Ctor instanceof Ctor &&
funcToString.call(Ctor) == objectCtorString;
}

var isPlainObject_1 = isPlainObject;
Expand Down
33 changes: 20 additions & 13 deletions dist/super.js
Original file line number Diff line number Diff line change
Expand Up @@ -1491,10 +1491,6 @@
*/

var Heap = function () {
// static HeapType = {
// MIN: (a: Item, b: Item): number => a - b,
// MAX: (a: Item, b: Item): number => b - a
// };

/** @private */

Expand Down Expand Up @@ -1770,6 +1766,15 @@
return Heap;
}();

Heap.HeapType = {
MIN: function MIN(a, b) {
return a - b;
},
MAX: function MAX(a, b) {
return b - a;
}
};

/**
*
* ListNode
Expand Down Expand Up @@ -2865,23 +2870,22 @@

var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};

/** Detect free variable `global` from Node.js. */
var freeGlobal = _typeof(commonjsGlobal) == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;

var _freeGlobal = freeGlobal;

/** Detect free variable `self`. */
var freeSelf = (typeof self === 'undefined' ? 'undefined' : _typeof(self)) == 'object' && self && self.Object === Object && self;
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;

/** Used as a reference to the global object. */
var root = _freeGlobal || freeSelf || Function('return this')();

var _root = root;

/** Built-in value references. */
var _Symbol2 = _root.Symbol;
var Symbol$1 = _root.Symbol;

var _Symbol = _Symbol2;
var _Symbol = Symbol$1;

/** Used for built-in method references. */
var objectProto = Object.prototype;
Expand Down Expand Up @@ -2968,13 +2972,15 @@
if (value == null) {
return value === undefined ? undefinedTag : nullTag;
}
return symToStringTag$1 && symToStringTag$1 in Object(value) ? _getRawTag(value) : _objectToString(value);
return (symToStringTag$1 && symToStringTag$1 in Object(value))
? _getRawTag(value)
: _objectToString(value);
}

var _baseGetTag = baseGetTag;

function overArg(func, transform) {
return function (arg) {
return function(arg) {
return func(transform(arg));
};
}
Expand All @@ -2987,7 +2993,7 @@
var _getPrototype = getPrototype;

function isObjectLike(value) {
return value != null && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) == 'object';
return value != null && typeof value == 'object';
}

var isObjectLike_1 = isObjectLike;
Expand Down Expand Up @@ -3045,7 +3051,8 @@
return true;
}
var Ctor = hasOwnProperty$1.call(proto, 'constructor') && proto.constructor;
return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
return typeof Ctor == 'function' && Ctor instanceof Ctor &&
funcToString.call(Ctor) == objectCtorString;
}

var isPlainObject_1 = isPlainObject;
Expand Down
24 changes: 12 additions & 12 deletions dist/super.min.js

Large diffs are not rendered by default.

98 changes: 0 additions & 98 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,104 +175,6 @@ BinaryTreeNode

### `_right: *`

## `Heap`

### `constructor()`

### `_heap: undefined[]`

### `_compare: *`

### `_parent(index: *): *`

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |
| index | * | nullable: undefined |

### `_left(index: number): Item`

Get the left child (i.e. 2*i+1)

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |
| index | number | |

### `_right(index: number): Item`

Get the right child (i.e. 2*i+2)

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |
| index | number | |

### `_defaultComparator(a: *, b: *): number`

Default comparator function to sort from: highest priority (max) -> lowest priority (min)

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |
| a | * | nullable: undefined |
| b | * | nullable: undefined |

### `isEmpty(): boolean`

Check if heap is empty

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |

### `clear(): void`

Clear the items from the heap

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |

### `insert(value: Item): number`

Insert an item into the heap

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |
| value | Item | | item to insert |

### `deleteMax(): Item`

Remove and return the maximum item

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |

### `deleteMin(): Item`

Remove and return the minimum item

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |

### `_percolateDown(index: number)`

Heapify down

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |
| index | number | | start index |

### `_percolateUp(index: number)`

Heapify up

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |
| index | number | | start index |

### `toArray(): Array<Item>`

Convert the heap to an array

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |

## `LinkedList`

LinkedList with superpowers! 💪
Expand Down
1 change: 0 additions & 1 deletion docs/class/packages/Array/src/lib/Array.js~_Array.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/BinaryTree/src/lib/BinaryTreeNode.js~BinaryTreeNode.html">BinaryTreeNode</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-TraversalType">TraversalType</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#bubblesort-src-lib">BubbleSort/src/lib</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-bubbleSort">bubbleSort</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#heap-src-lib">Heap/src/lib</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/Heap/src/lib/Heap.js~Heap.html">Heap</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#insertionsort-src-lib">InsertionSort/src/lib</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-insertionSort">insertionSort</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#linkedlist-src-lib">LinkedList/src/lib</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/LinkedList/src/lib/LinkedList.js~LinkedList.html">LinkedList</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/LinkedList/src/lib/ListNode.js~ListNode.html">ListNode</a></span></span></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/BinaryTree/src/lib/BinaryTreeNode.js~BinaryTreeNode.html">BinaryTreeNode</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-TraversalType">TraversalType</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#bubblesort-src-lib">BubbleSort/src/lib</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-bubbleSort">bubbleSort</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#heap-src-lib">Heap/src/lib</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/Heap/src/lib/Heap.js~Heap.html">Heap</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#insertionsort-src-lib">InsertionSort/src/lib</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-insertionSort">insertionSort</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#linkedlist-src-lib">LinkedList/src/lib</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/LinkedList/src/lib/LinkedList.js~LinkedList.html">LinkedList</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/LinkedList/src/lib/ListNode.js~ListNode.html">ListNode</a></span></span></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/BinaryTree/src/lib/BinaryTreeNode.js~BinaryTreeNode.html">BinaryTreeNode</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-TraversalType">TraversalType</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#bubblesort-src-lib">BubbleSort/src/lib</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-bubbleSort">bubbleSort</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#heap-src-lib">Heap/src/lib</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/Heap/src/lib/Heap.js~Heap.html">Heap</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#insertionsort-src-lib">InsertionSort/src/lib</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-insertionSort">insertionSort</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#linkedlist-src-lib">LinkedList/src/lib</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/LinkedList/src/lib/LinkedList.js~LinkedList.html">LinkedList</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/LinkedList/src/lib/ListNode.js~ListNode.html">ListNode</a></span></span></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/BinaryTree/src/lib/BinaryTreeNode.js~BinaryTreeNode.html">BinaryTreeNode</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-TraversalType">TraversalType</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#bubblesort-src-lib">BubbleSort/src/lib</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-bubbleSort">bubbleSort</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#heap-src-lib">Heap/src/lib</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/Heap/src/lib/Heap.js~Heap.html">Heap</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#insertionsort-src-lib">InsertionSort/src/lib</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-insertionSort">insertionSort</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#linkedlist-src-lib">LinkedList/src/lib</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/LinkedList/src/lib/LinkedList.js~LinkedList.html">LinkedList</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/LinkedList/src/lib/ListNode.js~ListNode.html">ListNode</a></span></span></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/BinaryTree/src/lib/BinaryTreeNode.js~BinaryTreeNode.html">BinaryTreeNode</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-TraversalType">TraversalType</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#bubblesort-src-lib">BubbleSort/src/lib</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-bubbleSort">bubbleSort</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#heap-src-lib">Heap/src/lib</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/Heap/src/lib/Heap.js~Heap.html">Heap</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#insertionsort-src-lib">InsertionSort/src/lib</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-insertionSort">insertionSort</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#linkedlist-src-lib">LinkedList/src/lib</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/LinkedList/src/lib/LinkedList.js~LinkedList.html">LinkedList</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/LinkedList/src/lib/ListNode.js~ListNode.html">ListNode</a></span></span></li>
Expand Down
1 change: 0 additions & 1 deletion docs/class/packages/Map/src/lib/Map.js~_Map.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/BinaryTree/src/lib/BinaryTreeNode.js~BinaryTreeNode.html">BinaryTreeNode</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-TraversalType">TraversalType</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#bubblesort-src-lib">BubbleSort/src/lib</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-bubbleSort">bubbleSort</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#heap-src-lib">Heap/src/lib</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/Heap/src/lib/Heap.js~Heap.html">Heap</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#insertionsort-src-lib">InsertionSort/src/lib</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-insertionSort">insertionSort</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#linkedlist-src-lib">LinkedList/src/lib</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/LinkedList/src/lib/LinkedList.js~LinkedList.html">LinkedList</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/packages/LinkedList/src/lib/ListNode.js~ListNode.html">ListNode</a></span></span></li>
Expand Down
Loading

0 comments on commit 74a333f

Please sign in to comment.