2.0.0-beta.1 • Published 6 months ago

es-stl v2.0.0-beta.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

es-stl

EMCAScript Standard Template Library

Install

npm:

$ npm install --save es-stl

yarn:

$ yarn add es-stl

Usage

Using es5

const binarySearch = require('ts-stl/algm/binarySearch');

binarySearch([1, 3, 5], 3);// => 1

Using es6 or typescript

import binarySearch from 'ts-stl/algm/binarySearch';

binarySearch([1, 3, 5], 3);// => 1

Reference

lodash

jquery

Modules

Classes

Functions

algm/binarySearch ⇒ number

Binary Search

ParamTypeDefaultDescription
arrArray.<T>an array after sort from small to large
searchValnumber
cbISearchCb.<T>giveBackCb
leftnumber0
rightnumberarr.length - 1

algm/binarySearchByRange ⇒ number

Binary search by range.

ParamTypeDescription
arrArray.<T>an object array after sort from small to large
searchValnumber
cbISearchRangeCb.<T>

Example

const dataList = [{s:0, e: 5}, {s:6, e: 18}, {s:19, e: 30}, ...];
binarySearchByRange(dataList, 10, (range: number[], data: {s: number, e: number}) => {
    range[0] = data.s;
    range[1] = data.e;
});
// => 1

const dataList = [{s:0, e: 5}, {s:5, e: 18}, {s:18, e: 30}, ...];
binarySearchByRange(dataList, 10, (range: number[], data: {s: number, e: number}) => {
    range[0] = data.s;
    range[1] = data.e - 1;
});
// => 1

algm/binarySearchInRange ⇒ number

Binary search in range [a, b).

ParamTypeDescription
arrArray.<T>an object array after sort from small to large
searchValnumber
cbISearchCb.<T>

Example

const dataList = [{num: 0}, {num: 100}, {num: 300}, {num: 700}, {num: 1000}];
binarySearchInRange(dataList, 125, (data: { num: number }) => data.num);
// => 1

i = binarySearchInRange(dataList, -10, (data: { num: number }) => data.num);
// => -1

i = binarySearchInRange(dataList, 0, (data: { num: number }) => data.num);
// => 0

i = binarySearchInRange(dataList, 100, (data: { num: number }) => data.num);
// => 1

i = binarySearchInRange(dataList, 300, (data: { num: number }) => data.num);
// => 2

i = binarySearchInRange(dataList, 350, (data: { num: number }) => data.num);
// => 2

i = binarySearchInRange(dataList, 800, (data: { num: number }) => data.num);
// => 3

i = binarySearchInRange(dataList, 1000, (data: { num: number }) => data.num);
// => 4

i = binarySearchInRange(dataList, 2000, (data: { num: number }) => data.num);
// => 4

algm/exponentialSearch ⇒ number

Exponential Search

ParamTypeDefaultDescription
arrArray.<T>an array after sort from small to large
searchValnumber
cbISearchCb.<T>giveBackCb

algm/interpolationSearch ⇒ number

Interpolation Search

ParamTypeDefaultDescription
arrArray.<T>an array after sort from small to large
searchValnumber
cbISearchCb.<T>giveBackCb

algm/mergeSortArr ⇒ Array.<T>

To combine two sorted arrays into an array sorted by original rules

Returns: Array.<T> - new array

ParamTypeDescription
arr1Array.<T>an array after sort
arr2Array.<T>an array after sort
cbISortCb.<T>

algm/mergeSortSingle ⇒ Array.<T>

Inserts an element into an sorted array, keeping the original order

ParamTypeDescription
arrArray.<T>an array after sort
elT
cbISortCb.<T>

algm/unique

Array Unique

ds/BinarySortTree

Binary Sort Tree

ds/BinarySortTree~BinarySortNode

Binary sort tree node

Kind: inner class of ds/BinarySortTree

ds/BinarySortTree~BinarySortTree

Kind: inner class of ds/BinarySortTree

binarySortTree.root ⇒ BinarySortNode.<V>

root

Kind: instance property of BinarySortTree

binarySortTree.isEmpty() ⇒ boolean

isEmpty

Kind: instance method of BinarySortTree

binarySortTree.insert(key, value) ⇒ boolean

insert

Kind: instance method of BinarySortTree

ParamType
keynumber
valueV

binarySortTree.remove(key) ⇒ V | null

remove

Kind: instance method of BinarySortTree

ParamType
keynumber

binarySortTree.search(key, node) ⇒ BinarySortNode.<V> | null

search

Kind: instance method of BinarySortTree

ParamType
keynumber
nodeBinarySortNode.<V>

binarySortTree.getMinNode(node) ⇒ BinarySortNode.<V> | null

getMinNode

Kind: instance method of BinarySortTree

ParamType
nodeBinarySortNode.<V>

binarySortTree.getMaxNode(node) ⇒ BinarySortNode.<V> | null

getMaxNode

Kind: instance method of BinarySortTree

ParamType
nodeBinarySortNode.<V>

binarySortTree.preOrder(cb)

preOrder

Kind: instance method of BinarySortTree

ParamType
cbIOrderCb.<V>

binarySortTree.inOrder(cb)

inOrder

Kind: instance method of BinarySortTree

ParamType
cbIOrderCb.<V>

binarySortTree.postOrder(cb)

postOrder

Kind: instance method of BinarySortTree

ParamType
cbIOrderCb.<V>

binarySortTree.clear()

clear

Kind: instance method of BinarySortTree

ds/Graph

Graph

ds/Graph~Vertex

Vertex

Kind: inner class of ds/Graph

ds/Graph~Edge

Edge

Kind: inner class of ds/Graph

ds/Graph~Graph

Kind: inner class of ds/Graph

new Graph(_isDirected)

ParamTypeDefault
_isDirectedbooleanfalse

graph.vertexSize ⇒ number

vertexSize

Kind: instance property of Graph

graph.edgeSize ⇒ number

edgeSize

Kind: instance property of Graph

graph.isEmpty() ⇒ boolean

isEmpty

Kind: instance method of Graph

graph.isDirected() ⇒ boolean

isDirected

Kind: instance method of Graph

graph.getVertex(key) ⇒ Vertex.<K, V, E> | undefined

getVertex

Kind: instance method of Graph

ParamType
keyK

graph.setVertex(key, value) ⇒ Vertex.<K, V, E>

setVertex

Kind: instance method of Graph

ParamType
keyK
valueV

graph.removeVertex(key) ⇒ Vertex.<K, V, E> | undefined

removeVertex

Kind: instance method of Graph

ParamType
keyK

graph.getEdge(fromKey, toKey) ⇒ Edge.<K, V, E> | undefined

getEdge

Kind: instance method of Graph

ParamType
fromKeyK
toKeyK

graph.setEdge(fromKey, toKey, value) ⇒ Edge.<K, V, E> | undefined

setEdge

Kind: instance method of Graph

ParamType
fromKeyK
toKeyK
valueE

graph.removeEdge(fromKey, toKey) ⇒ Edge.<K, V, E> | undefined

removeEdge

Kind: instance method of Graph

ParamType
fromKeyK
toKeyK

graph.dfs(key, cb)

dfs

Kind: instance method of Graph

ParamType
keyK
cbIIterateCb.<K, V, E>

graph.bfs(key, cb)

bfs

Kind: instance method of Graph

ParamType
keyK
cbIIterateCb.<K, V, E>

graph.dijkstra(key, getWeight) ⇒ Dictionary.<K, number>

dijkstra

Kind: instance method of Graph

ParamType
keyK
getWeightIGetWeightCb.<E>

graph.clear()

clear

Kind: instance method of Graph

ds/Heap

Heap

ds/Heap~Heap

Kind: inner class of ds/Heap

heap.size ⇒ number

size

Kind: instance property of Heap

heap.isEmpty() ⇒ boolean

isEmpty

Kind: instance method of Heap

heap.push(value, priority)

push

Kind: instance method of Heap

ParamType
valueT
prioritynumber

heap.pop() ⇒ T | undefined

pop

Kind: instance method of Heap

heap.top() ⇒ T | undefined

top

Kind: instance method of Heap

heap.fit()

fit

Kind: instance method of Heap

heap.clear()

Clear the heap

Kind: instance method of Heap

ds/Queue

Queue

ds/Queue~Queue

Kind: inner class of ds/Queue

new Queue(arr)

ParamTypeDefault
arrArray.<T>[]

queue.size ⇒ number

size

Kind: instance property of Queue

queue.isEmpty() ⇒ boolean

isEmpty

Kind: instance method of Queue

queue.enqueue(el) ⇒ this

enqueue

Kind: instance method of Queue

ParamType
elT

queue.dequeue() ⇒ T | undefined

dequeue

Kind: instance method of Queue

queue.first() ⇒ T | undefined

Return the first element

Kind: instance method of Queue

queue.last() ⇒ T | undefined

Return the last element

Kind: instance method of Queue

queue.clear()

Clear the queue

Kind: instance method of Queue

ds/Set

Set

ds/Set~Set

Kind: inner class of ds/Set

new Set(arr)

ParamTypeDefault
arrArray.<T>[]

set.size ⇒ number

size

Kind: instance property of Set

set.isEmpty() ⇒ boolean

isEmpty

Kind: instance method of Set

set.has(value) ⇒ boolean

has

Kind: instance method of Set

ParamType
valueT

set.add(value) ⇒ boolean

add

Kind: instance method of Set

ParamType
valueT

set.delete(value) ⇒ boolean

delete

Kind: instance method of Set

ParamType
valueT

set.values() ⇒ Array.<T>

values Note: Return value is Set inner array

Kind: instance method of Set

set.clear()

clear

Kind: instance method of Set

set.union(tar) ⇒ Set.<T>

union

Kind: instance method of Set

ParamType
tarSet.<T>

set.intersect(tar) ⇒ Set.<T>

intersect

Kind: instance method of Set

ParamType
tarSet.<T>

set.contain(tar) ⇒ boolean

contain

Kind: instance method of Set

ParamType
tarSet.<T>

set.difference(tar) ⇒ Set.<T>

difference

Kind: instance method of Set

ParamType
tarSet.<T>

ds/Stack

Stack

ds/Stack~Stack

Kind: inner class of ds/Stack

new Stack(arr)

ParamTypeDefault
arrArray.<T>[]

stack.size ⇒ number

size

Kind: instance property of Stack

stack.isEmpty() ⇒ boolean

isEmpty

Kind: instance method of Stack

stack.push(value) ⇒ this

push

Kind: instance method of Stack

ParamType
valueT

stack.pop() ⇒ T | undefined

pop

Kind: instance method of Stack

stack.top() ⇒ T | undefined

Return the top element of the stack

Kind: instance method of Stack

stack.clear()

Clear the stack

Kind: instance method of Stack

utils/clamp ⇒ number

Clamps number within the inclusive lower and upper bounds.

Returns: number - Returns the clamped number.

ParamTypeDescription
numnumberThe number to clamp.
lowernumberThe lower bound.
uppernumberThe upper bound.

Example

clamp(-10, -5, 5);
// => -5

clamp(10, -5, 5);
// => 5

utils/Compare

Compare

utils/Compare~Compare

Kind: inner class of utils/Compare

Compare.start(cb) ⇒ TCompare

Start compare, The method must be called at first

Kind: static method of Compare

ParamTypeDescription
cbICompareCbIf compare number array, You can not pass this parameter

Compare.then(cb) ⇒ TCompare

Then compare

Kind: static method of Compare

ParamTypeDefault
cbICompareCbgiveBackCb

Compare.reverse() ⇒ TCompare

Reverse

Kind: static method of Compare

Compare.end() ⇒ ISortCb.<any>

End compare, The method must be called at last

Kind: static method of Compare

utils/debounce ⇒ function

debounce

ParamType
cbfunction
delaynumber

Example

const d = debounce(console.log), 1000);
d(1);d(1);d(1);
// => 1

utils/ellipsis ⇒ string

String abbreviation with ellipsis

ParamTypeDefault
strstring
numnumber
templatestring"'...'"

Example

ellipsis('0123456789', 4);
// => 0123...

ellipsis('012', 4);
// => 012

utils/error

Throw error

ParamType
msgstring

utils/format ⇒ string

String format, just support %s, it's simple, but useful.

Returns: string - Returns the formatted string.

ParamTypeDescription
templatestringText with placeholders for data.
data*Data to interpolate into template.

Example

formats('The %s is %s.', 'code', 123);
=> The code is 123.

utils/formats ⇒ string

String format, just support %s, it's simple, but useful.

Returns: string - Returns the formatted string.

ParamTypeDescription
templatestringText with placeholders for data.
dataArray.<any>Data to interpolate into template.

Example

formats('I like %s and %s.', ['swimming', 'skiing']);
=> I like swimming and skiing.

utils/getClass ⇒ string

Determine the internal JavaScript [Class] of an object.

Returns: string - Object to get the internal JavaScript [Class] of.

ParamTypeDescription
value*value The value to check.

Example

class Foo {
		private f: number = 1;
}
getClass(new Foo()) === Foo;
// => true

getClass(undefined) === undefined;
// => true

getClass(null) === null;
// => true

getClass(true) === Boolean;
// => true

getClass(new Boolean()) === Boolean;
// => true

getClass(3) === Number;
// => true

getClass("test") === String;
// => true

getClass(new String("test")) === String;
// => true

getClass(function(){}) === Function;
// => true

getClass([]) === Array;
// => true

getClass(new Array()) === Array;
// => true

getClass(new Date()) === Date;
// => true

getClass(new Error()) === Error;
// => true

getClass(Symbol()) === Symbol;
// => true

getClass(Object(Symbol())) === Symbol;
// => true

getClass(/test/) === RegExp;
// => true

getClass(Date) === Function;
// => true

getClass(Date) === Date;
// => false

utils/hashCode ⇒ number

Get hash code from number or string.

ParamType
keyNumOrStr

Example

hashCode(1001);
// => 1507424

hashCode('book');
// => 3029737

utils/inRange ⇒ boolean

Checks if num is between start and end, such as start <= num <= end

Returns: boolean - Returns true if number is in the range, else false.

ParamTypeDescription
numnumberThe number to check.
startnumberThe start of the range.
endnumberThe end of the range.

Example

inRange(3, 2, 4);
// => true

inRange(4.5, 2, 4.5);
// => true

inRange(-3, -6, -2);
// => true

utils/isArrayLike ⇒ boolean

Checks if value is array-like. A value is considered array-like if it's not a function and not a window and has a value.length that's an integer greater than or equal to 0 and less than or equal to Number.MAX_SAFE_INTEGER.

Returns: boolean - Returns true if value is array-like, else false.

ParamTypeDescription
value*The value to check.

Example

isArrayLike([1, 2, 3]);
// => true

isArrayLike(document.body.children);
// => true

isArrayLike('abc');
// => true

isArrayLike(noop);
// => false

isArrayLike(window);
// => false

utils/isBool ⇒ boolean

Checks if value is classified as a boolean primitive or object.

Returns: boolean - Returns true if value is a boolean, else false.

ParamTypeDescription
value*The value to check.

Example

isBool(false);
// => true

isBool(null);
// => false

utils/isClass ⇒ boolean

Checks if value is classified as a Class primitive or object.

ParamTypeDescription
value*The value to check.
ClassfunctionWhich class.

Example

isClass(Date, Function);
// => true

isClass(Date, Date);
// => false

isClass("test", String);
// => true

isClass(3, Number);
// => true

isClass(true, Boolean);
// => true

utils/isFunc ⇒ boolean

Checks if value is classified as a Function object.

Returns: boolean - Returns true if value is a function, else false.

ParamTypeDescription
value*The value to check.

Example

isFunc(noop);
// => true

isFunc(/abc/);
// => false

utils/isInt ⇒ boolean

Checks if value is an integer.

Returns: boolean - Returns true if value is an integer, else false.

ParamTypeDescription
value*The value to check.

Example

isInt(3);
// => true

isInt(3.3);
// => false

isInt(Number.MAX_VALUE);
// => true

isInt(Number.MIN_VALUE);
// => false

isInt(Infinity);
// => false

isInt('3');
// => true

utils/isLength ⇒ boolean

Checks if value is a valid array-like length.

Note: This method is loosely based on ToLength.

Returns: boolean - Returns true if value is a valid length, else false.

ParamTypeDescription
value*The value to check.

Example

isLength(3);
// => true

isLength(Number.MIN_VALUE);
// => false

isLength(Infinity);
// => false

isLength('3');
// => false

utils/isNum ⇒ boolean

Checks if value is classified as a Number primitive or object.

Returns: boolean - Returns true if value is a number, else false.

ParamTypeDescription
value*The value to check.

Example

isNum(3);
// => true

isNum(Number.MIN_VALUE);
// => true

isNum(Infinity);
// => true

isNum('3');
// => false

utils/isObj ⇒ boolean

Checks if value is the language type of Object. (e.g. arrays, functions, objects, regexes, new Number(0), and new String(''))

Returns: boolean - Returns true if value is an object, else false.

ParamTypeDescription
value*The value to check.

Example

isObj({});
// => true

isObj([1, 2, 3]);
// => true

isObj(noop);
// => true

isObj(null);
// => false

utils/isObjLike ⇒ boolean

Checks if value is object-like. A value is object-like if it's not null and has a typeof result of "object".

Returns: boolean - Returns true if value is object-like, else false.

ParamTypeDescription
value*The value to check.

Example

isObjLike({});
// => true

isObjLike([1, 2, 3]);
// => true

isObjLike(function(){});
// => false

isObjLike(null);
// => false

utils/isPlainObj ⇒ boolean

Checks if value is a plain object, that is, an object created by the Object constructor or one with a [[Prototype]] of null.

Returns: boolean - Returns true if value is a plain object, else false.

ParamTypeDescription
value*The value to check.

Example

function Foo() {
  this.a = 1;
}

isPlainObj(new Foo);
// => false

isPlainObj([1, 2, 3]);
// => false

isPlainObj({ 'x': 0, 'y': 0 });
// => true

isPlainObj(Object.create(null));
// => true

utils/isStr ⇒ boolean

Checks if value is classified as a String primitive or object.

Returns: boolean - Returns true if value is a string, else false.

ParamTypeDescription
value*The value to check.

Example

isStr('abc');
// => true

isStr(1);
// => false

utils/merge ⇒ T

Merge the contents of a object into the first object.

Returns: T - Returns object.

ParamTypeDescription
tarTAn object that will receive the new properties.
srcSAn object containing additional properties to merge in.
deepbooleanIf true, the merge becomes recursive (aka. deep copy). passing false for this argument is not supported, default is true.

Example

var object = {
  'a': [{ 'b': 2 }, { 'd': 4 }]
};

var other = {
  'a': [{ 'c': 3 }, { 'e': 5 }]
};

merge(object, other);
// => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }

utils/mergeWith ⇒ T

Merge the contents of a object into the first object by customizer.

Returns: T - Returns object.

ParamTypeDescription
tarTAn object that will receive the new properties.
srcSAn object containing additional properties to merge in.
cbIMergeCbCustomizer the function to customize assigned values, the prop will be skip when return value is undefined,
deepbooleanIf true, the merge becomes recursive (aka. deep copy). passing false for this argument is not supported.

Example

function customizer(srcValue, tarValue) {
  if (Array.isArray(tarValue)) {
    return tarValue.concat(srcValue);
  }
}

var object = { 'a': [1], 'b': [2] };
var other = { 'a': [3], 'b': [4] };

mergeWith(object, other, customizer);
// => { 'a': [1, 3], 'b': [2, 4] }

utils/noop

This method returns undefined.

Example

btn.onclick = fn || noop;
// => undefined

utils/random ⇒ number

Produces a random number between the inclusive lower and upper bounds.

Returns: number - Returns the random floating-point number.

ParamTypeDescription
lowernumberThe lower bound.
uppernumberThe upper bound.

Example

random(1, 5);
// => a floating-point number between 1 and 5

utils/repeat ⇒ string

Repeats the given string n times.

Returns: string - Returns the repeated string.

ParamTypeDescription
strstringThe string to repeat.
nnumberThe number of times to repeat the string.

Example

repeat('*', 3);
// => '***'

repeat('abc', 2);
// => 'abcabc'

repeat('abc', 0);
// => ''

utils/throttle ⇒ function

throttle

ParamType
cbfunction
intervalnumber

Example

const t = throttle(console.log, 1000);
t(1);t(1);...a second...t(1);
// => 1

utils/toFixed ⇒ number

Returns a number in fixed-point notation.

Returns: number - Returns a number in fixed-point notation.

ParamTypeDefaultDescription
numnumberThe number to fixed.
fixednumber0Number of digits after the decimal point.

Example

toFixed(3.14);
// => 3

toFixed(3.1415926, 2);
// => 3.14

toFixed(3.1415926, 4);
// => 3.1415

CycleLinkList

Kind: global class

cycleLinkList.addLast(value)

addLast

Kind: instance method of CycleLinkList

ParamType
valueT

cycleLinkList.remove(value) ⇒ number

remove

Kind: instance method of CycleLinkList

ParamType
valueT

cycleLinkList.insertAt(value, index) ⇒ boolean

insertAt

Kind: instance method of CycleLinkList

ParamType
valueT
indexnumber

cycleLinkList.removeAt(index) ⇒ T | null

removeAt

Kind: instance method of CycleLinkList

ParamType
indexnumber

Dictionary

Kind: global class

new Dictionary(obj)

ParamTypeDefault
objIKeyValue.<V>{}

dictionary.size ⇒ number

size

Kind: instance property of Dictionary

dictionary.fromObject(obj) ⇒ this

Object transform to Dictionary

Kind: instance method of Dictionary

ParamType
objIKeyValue.<V>

dictionary.toObject() ⇒ IKeyValue.<V>

Dictionary transform to object Note: Return value is Dictionary inner object

Kind: instance method of Dictionary

dictionary.isEmpty() ⇒ boolean

isEmpty

Kind: instance method of Dictionary

dictionary.has(key) ⇒ boolean

has

Kind: instance method of Dictionary

ParamType
keyK

dictionary.get(key) ⇒ V | undefined

get

Kind: instance method of Dictionary

ParamType
keyK

dictionary.set(key, value) ⇒ this

set

Kind: instance method of Dictionary

ParamType
keyK
valueV

dictionary.delete(key) ⇒ boolean

delete

Kind: instance method of Dictionary

ParamType
keyK

dictionary.keys() ⇒ Array.<string>

keys

Kind: instance method of Dictionary

dictionary.values(values) ⇒ Array.<V>

values

Kind: instance method of Dictionary

ParamTypeDefault
valuesArray.<V>[]

dictionary.toString() ⇒ string

toString

Kind: instance method of Dictionary

dictionary.clear()

Clear the dictionary

Kind: instance method of Dictionary

DoubleLinkNode

DoubleLinkNode

Kind: global class

DoubleLinkList

Kind: global class

doubleLinkList.size ⇒ number

size

Kind: instance property of DoubleLinkList

doubleLinkList.isEmpty() ⇒ boolean

isEmpty

Kind: instance method of DoubleLinkList

doubleLinkList.head() ⇒ DoubleLinkNode.<T> | null

head

Kind: instance method of DoubleLinkList

doubleLinkList.tail() ⇒ DoubleLinkNode.<T> | null

tail

Kind: instance method of DoubleLinkList

doubleLinkList.clear()

clear

Kind: instance method of DoubleLinkList

doubleLinkList.addFirst(value)

addFirst

Kind: instance method of DoubleLinkList

ParamType
valueT

doubleLinkList.addLast(value)

addLast

Kind: instance method of DoubleLinkList

ParamType
valueT

doubleLinkList.insertAfter(value, curValue) ⇒ number

insertAfter

Kind: instance method of DoubleLinkList

ParamType
valueT
curValueT

doubleLinkList.insertBefore(value, curValue) ⇒ number

insertBefore

Kind: instance method of DoubleLinkList

ParamType
valueT
curValueT

doubleLinkList.remove(value) ⇒ number

remove

Kind: instance method of DoubleLinkList

ParamType
valueT

doubleLinkList.insertAt(value, index) ⇒ boolean

insertAt

Kind: instance method of DoubleLinkList

ParamType
valueT
indexnumber

doubleLinkList.removeAt(index) ⇒ T | null

removeAt

Kind: instance method of DoubleLinkList

ParamType
indexnumber

doubleLinkList.indexOf(value) ⇒ number

indexOf

Kind: instance method of DoubleLinkList

ParamType
valueT

doubleLinkList.includes(value) ⇒ boolean

includes

Kind: instance method of DoubleLinkList

ParamType
valueT

doubleLinkList.get(index) ⇒ T | null

get

Kind: instance method of DoubleLinkList

ParamType
indexnumber

LinkNode

LinkNode

Kind: global class

LinkList

Kind: global class

linkList.size ⇒ number

size

Kind: instance property of LinkList

linkList.isEmpty() ⇒ boolean

isEmpty

Kind: instance method of LinkList

linkList.head() ⇒ LinkNode.<T> | null

head

Kind: instance method of [L

1.0.1

6 months ago

2.0.0-beta.1

6 months ago

2.0.0-beta.0

12 months ago

1.0.0

2 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago