Array

Filling out the gap in older Array implementations.

Functions

Array.push

Definition

Name
Array.push
Syntax
Integer = Array.push( String value );

Description

Add value to end of Array.

This is a fallback support function - only applied if browser does not support this natively.

Parameters

value
String String to add to end of Array

Return values

Integer new length of Array

Examples

No examples

Dependencies

JavaScript

Nothing

Manipulator

Nothing

Array.pop

Definition

Name
Array.pop
Syntax
String = Array.pop();

Description

Pops the last element off Array.

This is a fallback support function - only applied if browser does not support this natively.

Parameters

No parameters

Return values

String value of last index in Array

Examples

No examples

Dependencies

JavaScript

Nothing

Manipulator

Nothing

Array.reverse

Definition

Name
Array.reverse
Syntax
Array = Array.reverse();

Description

Reverses order of Array.

This is a fallback support function - only applied if browser does not support this natively.

Parameters

No parameters

Return values

Array Array in new order

Examples

No examples

Dependencies

JavaScript

Nothing

Manipulator

Nothing

Array.unshift

Definition

Name
Array.unshift
Syntax
Integer = Array.unshift(String value);

Description

Add value to beginning of Array.

This is a fallback support function - only applied if browser does not support this natively.

Parameters

value
String value to add to beginning Array

Return values

Integer new length of Array

Examples

No examples

Dependencies

JavaScript
  • Array.push
  • Array.reverse
Manipulator

Nothing

Array.shift

Definition

Name
Array.shift
Syntax
String = Array.shift();

Description

Removes first index of Array.

This is a fallback support function - only applied if browser does not support this natively.

Parameters

No parameters

Return values

String value of first index of Array

Examples

No examples

Dependencies

JavaScript

Nothing

Manipulator

Nothing

Array.indexOf

Definition

Name
Array.indexOf
Syntax
Integer = Array.indexOf(String value);

Description

Does Array contain value.

This is a fallback support function - only applied if browser does not support this natively.

Parameters

value
String value to look for in Array

Return values

Integer index of value or -1 if not found

Examples

No examples

Dependencies

JavaScript
  • none
Manipulator
  • none

Object.keys

Definition

Name
Object.keys
Syntax
Array = Object.keys(Object object);

Description

Get keys of object as array.

This is a fallback support function - only applied if browser does not support this natively.

Parameters

object
Object object to find keys of

Return values

Array array of object keys

Examples

No examples

Dependencies

JavaScript
  • for ... in
  • Object.hasOwnProperty
  • Array.push
Manipulator
  • none

files

Main file

  • none

Segment support files

  • u-array-desktop_light.js

Segment dependencies

desktop_edge
No include required
desktop_ie11
No include required
desktop
No include required
desktop_ie10
No include required
desktop_ie9
No include required
desktop_light
u-array-desktop_light.js
tablet
No include required
tablet_light
No include required
smartphone
No include required
mobile
not tested
mobile_light
not tested
tv
u-array-desktop_light.js
seo
not supported