AtpArray

Array convenience functions

new AtpArray()

Extends AtpObject

Instance Members
▸ difference(other)
▸ intersect(other)
▸ sortBy(fieldName)
▸ partition(partitionFunc)
▸ max()

a

Wraps an array in an ATPArray

a
Parameters
obj (Array)

AtpObject

Syntactic sugar functions for Objects

new AtpObject(obj: any)
Parameters
obj (any)
Instance Members
▸ as(f)
▸ debug()
▸ filter(f)
▸ keys()
▸ map(m)
▸ merge(other, flags)
▸ reduce(f, initialValue)
▸ mergeReduce(f)
▸ switch(actions)
▸ delete(name)
▸ values()

o

Wrap the given object to make the syntactic sugar functionas available

o
Parameters
obj (any)

DelayedEvent

Convenience wrapper around setTimeout

new DelayedEvent(callback: Function)
Parameters
callback (Function) the function to delay
Example
f(func).delay().for(5).seconds();
Instance Members
▸ cancel()
▸ for(delay)
▸ runIn(delay)
▸ milliseconds()
▸ seconds()
▸ minutes()
▸ hours()
▸ days()

ATPFunction

A wrapper for convenient functions related to functions

new ATPFunction()

delay

Convenience method for setTimeout() allowing for a more fluid style

delay(): DelayedEvent
Returns
DelayedEvent:
Example
f(func).delay().for(5).seconds();

f

Wrap the specified function in an ATPFunction object

f
Parameters
func (Function)