NAME

JavaScript::Code::Array - A JavaScript Array Type

SYNOPSIS

#!/usr/bin/perl

use strict;
use warnings;
use JavaScript::Code::Array;

my $array = JavaScript::Code::Array->new( elements => [] );

METHODS

new( ... )

$self->push_back( $value | \@values )

Add one or more element(s) to the end of array.

$self->at( $index, < $value > )

Gets or sets the value on the given index.

Dies if the index is out of range.

$self->length( )

Returns the number of elements stored in the array.

$self->type( )

$self->output( )

SEE ALSO

JavaScript::Code

AUTHOR

Sascha Kiefer, esskar@cpan.org

LICENSE

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.