Class: ABM.Array

Defined in: src/array.coffee
Inherits: Array
Includes: ABM.util.array

Overview

An array, with some helper methods added in from ABM.util.array.

It is a subclass of Array and is the base class for ABM.Set.

Note: subclassing Array can be dangerous but thus far we've resolved all related problems. See Trevor Burnham's comments

for codo doc generator

Direct Known Subclasses

ABM.Color ABM.Set

Class Method Summary

Included Method Summary

Methods included from ABM.util.array

#from #toString #toFixed #any #empty #clear #clone #first #last #select #reject #sample #contains #remove #removeItem #shuffle #min #max #sum #average #median #histogram #sort #uniq #flatten #concat #normalize #normalizeInt #ask #with #getProperty #setProperty #other

Class Method Details

. (void) from(array, arrayType = ABM.Array)

A static wrapper function converting an array into an ABM.Array.

It gains access to all the methods below. Ex:

array = [1, 2, 3]
ABM.Array.from(array)
randomNr = array.random()

Constructor Details

# (void) constructor(options...)

Constructs the ABM.Array.

WARNING: Needs constructor or subclassing Array won't work

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: