Properties (44)
Predicate | Object |
---|---|
gptkbp:instanceOf |
Function
|
gptkbp:accepts |
one or more elements to add
|
gptkbp:affiliatedWith |
Array
|
gptkbp:can_be |
any array instance
array length change multiple items at once other array methods |
gptkbp:communitySupport |
the original array
|
https://www.w3.org/2000/01/rdf-schema#label |
Array.prototype.push
|
gptkbp:is_a |
true
|
gptkbp:is_a_time_for |
Array
O(1) on average |
gptkbp:is_a_way_to |
JavaScript arrays
|
gptkbp:is_accessible_by |
subclassing_Array
|
gptkbp:is_available_in |
all modern browsers
|
gptkbp:is_part_of |
ECMAScript specification
JavaScript language Array interface |
gptkbp:is_recognized_for |
JavaScript
function push() {...} |
gptkbp:is_used_in |
data manipulation
functional programming event handling loops any data type callback functions adding elements to the end of an array create dynamic arrays increase array size |
gptkbp:isPromotedThrough |
true
|
gptkbp:relatedTo |
Array.prototype.concat
|
gptkbp:respondsTo |
new length of the array
|
gptkbp:technique |
accept arrays
accept booleans accept functions accept mixed types accept null values accept numbers accept objects accept objects with properties accept strings accept symbols accept undefined values modifies the array in place |