-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathArray.as
executable file
·48 lines (41 loc) · 1.72 KB
/
Array.as
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//****************************************************************************
// ActionScript Standard Library
// Array object
//****************************************************************************
intrinsic dynamic class Array
{
static var CASEINSENSITIVE:Number;
static var DESCENDING:Number;
static var NUMERIC:Number;
static var RETURNINDEXEDARRAY:Number;
static var UNIQUESORT:Number;
var length:Number;
function Array(value:Object);
function concat(value:Object):Array;
function join(delimiter:String):String;
function pop():Object;
function push(value):Number;
function reverse():Void;
function shift():Object;
function slice(startIndex:Number, endIndex:Number):Array;
function sort(compareFunction:Object, options: Number):Array; // 'compare' might be omitted so untyped. 'options' is optional.
function sortOn(fieldName:Object, options: Object):Array; // 'fieldName' is a String, or an Array of String. 'options' is optional.
function splice(startIndex:Number, deleteCount:Number, value:Object):Array;
function toString():String;
function unshift(value:Object):Number;
//-------------------------------------------------------------------
// ArrayPrototype
//-------------------------------------------------------------------
function each()
function collect( block:Function ):Array
function select( block:Function ):Array
function selectByProperty( propertyName:String, value )
function detect( block:Function ):Array
function detectByProperty( propertyName:String, value )
function reject( block:Function ):Array
function rejectByProperty( propertyName:String, value )
function randomize():Array
function remove( o:Object ):Object
function includes( object:Object ):Boolean
function sum():Number
}