CLASSES
TagsA - Z

SmartArray

Description

class SmartArray

Constructor

new SmartArray(capacity)

Parameters

Name Type Description
capacity number

Members

data : Array<T>

length : number

Methods

push(value) void

Parameters

Name Type Description
value T

forEach(func) void

Parameters

Name Type Description
func (content: T) => void

pushNoDuplicate(value) boolean

Parameters

Name Type Description
value T

sort(compareFn) void

Parameters

Name Type Description
compareFn (a: T, b: T) => number

reset() void

dispose() void

concat(array) void

Parameters

Name Type Description
array any

concatWithNoDuplicate(array) void

Parameters

Name Type Description
array any

indexOf(value) number

Parameters

Name Type Description
value T

contains(value) boolean

Parameters

Name Type Description
value T