Array method
A JavaScript array method is a built-in operation associated with arrays for inspecting, processing, or transforming their elements.
The Well-Grounded Rubyist, Fourth Edition
The Array method is a Ruby top-level conversion method that returns an array representation of its argument.
- How it is used
- Converts an existing Ruby object into an array representation.
- How deep it goes
- Explains ordinary wrapping and object-defined to_a behavior, while stopping short of a complete conversion protocol reference.
- Examples
- Uses string conversion, a dynamically defined to_a method, and Array.try_convert with an object-defined to_ary method.
- What you can do after
- Apply it to obtain an array from an argument and observe how conversion methods affect the result.
Read how The Well-Grounded Rubyist, Fourth Edition explains array method →
Secrets of the JavaScript Ninja, Second Edition
A method available on arrays for operations such as iteration, transformation, or querying.
- How it is used
- Use array methods to make collection handling more elegant, including adding and removing items.
- How deep it goes
- Introduces arrays as objects and surveys built-in methods without detailing each method’s mechanics.
- Examples
- Names push, splice, forEach, map, find, filter, and reduce among built-in methods.
- What you can do after
- Apply built-in array methods to handle collections more elegantly, including adding and removing items.
Read how Secrets of the JavaScript Ninja, Second Edition explains array method →
Also covered in
- Pro Angular 16
- Vanilla WebIn early access (MEAP)
What to know first
- functionA function is a callable unit of program code that performs a computation or operation, can accept inputs, and may produce a result or side effect.
Related concepts
- calluses · Function.prototype.call is a JavaScript method that invokes a function with a specified this value and arguments supplied individually.
- Array.prototype.filterincludes · Array.prototype.filter is a JavaScript method that returns a new array containing the elements for which a callback predicate returns a truthy value.
- reduction operationincludes · A reduction operation combines multiple input values according to a rule to produce fewer results, often a single aggregate.
- arraypart of · An array is an ordered collection of elements organized in one or more dimensions and accessible by position or index.
- computed signalused by · A computed signal is a read-only reactive value derived from other signals and recalculated when its dependencies change.
Questions about array method
What is array method?
A JavaScript array method is a built-in operation associated with arrays for inspecting, processing, or transforming their elements.
Which Manning books explain array method?
The Well-Grounded Rubyist, Fourth Edition and Secrets of the JavaScript Ninja, Second Edition.
What should I know before learning array method?
Manning books that teach array method usually introduce function first.
What kinds of array method are there?
Kinds of array method include Array.prototype.filter and reduction operation.
What is array method part of?
Array method is part of array. An array is an ordered collection of elements organized in one or more dimensions and accessible by position or index.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

