JavaScript: Array, String & Object Methods
102 cards · 🇺🇸 English
Built-in methods for working with arrays, strings, and objects.
Study all 102 cards for free
Flashcards, quizzes, pixel-art games and a daily review that remembers for you.
Try the first 10 cards
1 / 10Array.push()
Tap the card for the answer · swipe right if you knew it, left if not
Already have an account? Sign in
Cards
- 1Array.push()Adds one or more elements to the end of an array and returns the new length
- 2Array.pop()Removes and returns the last element from an array
- 3Array.shift()Removes and returns the first element from an array
- 4Array.unshift()Adds one or more elements to the beginning of an array and returns the new length
- 5Array.map()A new array containing the results of calling a function on every element
- 6Array.filter()A new array with all elements that pass the test function
- 7Array.reduce()Executes a reducer function on each element to reduce the array to a single value (left to right)
- 8Array.forEach()Executes a provided function once for each array element (no return value)
- 9Array.find()The first element that satisfies the test function, or undefined if none found
- 10Array.findIndex()The index of the first element that satisfies the test function, or -1 if none found
- 11Array.some()true if at least one element passes the test function, false otherwise
- 12Array.every()true if all elements pass the test function, false otherwise
- 13Array.includes()Checks if an array contains a specified value, returns boolean
- 14Array.indexOf()The first index at which a given element is found, or -1 if not present
- 15Array.lastIndexOf()The last index at which a given element is found, or -1 if not present
- 16Array.slice()Returns a shallow copy of a portion of an array into a new array (start, end)
- 17Array.splice()Changes array by removing, replacing, or adding elements in place
- 18Array.concat()Merges two or more arrays into a new array
- 19Array.join()Joins all array elements into a string, separated by a specified delimiter
- 20Array.reverse()Reverses the array in place (mutates original array)
- 21Array.sort()Sorts array elements in place and returns the sorted array
- 22Array.flat()Creates a new array with sub-array elements concatenated recursively up to specified depth
- 23Array.flatMap()Maps each element using a function, then flattens the result by one level
- 24Array.fill()Fills array elements from start to end index with a static value
- 25Array.copyWithin()Shallow copies part of array to another location in the same array
- 26Array.at()Returns the element at the given index (accepts negative integers)
- 27Array.entries()An iterator object containing key/value pairs for each index
- 28Array.keys()An iterator containing the keys (indices) of the array
- 29Array.values()An iterator containing the values of the array
- 30Array.reduceRight()Applies a reducer function from right to left to reduce array to single value
And 72 more cards. Study the whole deck free
Articles about this deck
More Programming decks
See all- 🌐
APIs: REST, GraphQL & HTTP Status Codes
108 cards · 🇺🇸 English
REST and GraphQL API concepts plus common HTTP status codes.
- 🎨
CSS: Box-Modell, Selektoren & Media Queries
129 cards · 🇺🇸 English
Das CSS-Box-Modell, Selektortypen, Media Queries und Animationen.
- 📄
HTML : balises et attributs
99 cards · 🇺🇸 English
Éléments HTML essentiels et leurs attributs.
- 🎨
CSS: Box Model, Selectors & Media Queries
129 cards · 🇺🇸 English
The CSS box model, selector types, media queries, and animations.
- 🔒
Web Security: OWASP & Authentication
35 cards · 🇺🇸 English
Common web vulnerabilities (OWASP Top 10) and authentication concepts.
- 🎨
CSS : Flexbox et Grid
58 cards · 🇺🇸 English
Mise en page avec CSS Flexbox et Grid.
