Javascript - Arrays

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/39

encourage image

There's no tags or description

Looks like no tags are added yet.

40 Terms

1
New cards

.at()

Returns an indexed element of an array

2
New cards

.concat()

Joins arrays and returns an array with the joined arrays

3
New cards

.constructor

Returns the function that created the Array object's prototype

4
New cards

.copyWithin()

Copies array elements within the array, to and from specified positions

5
New cards

.entries()

Returns a key/value pair Array Iteration Object

6
New cards

.every()

Checks if every element in an array pass a test

7
New cards

.fill()

Fill the elements in an array with a static value

8
New cards

.filter()

Creates a new array with every element in an array that pass a test

9
New cards

.find()

Returns the value of the first element in an array that pass a test

10
New cards

.findIndex()

Returns the index of the first element in an array that pass a test

11
New cards

.findLast()

Returns the value of the last element in an array that pass a test

12
New cards

.findLastIndex()

Returns the index of the last element in an array that pass a test

13
New cards

.flat()

Concatenates sub-array elements

14
New cards

.flatMap()

Maps all array elements and creates a new flat array

15
New cards

.forEach()

Calls a function for each array element

16
New cards

.from()

Creates an array from an object

17
New cards

.includes()

Check if an array contains the specified element

18
New cards

.indexOf()

Search the array for an element and returns its position

19
New cards

.isArray()

Checks whether an object is an array

20
New cards

.join()

Joins all elements of an array into a string

21
New cards

.keys()

Returns a Array Iteration Object, containing the keys of the original array

22
New cards

.lastIndexOf()

Search the array for an element, starting at the end, and returns its position

23
New cards

.length

Sets or returns the number of elements in an array

24
New cards

.map()

Creates a new array with the result of calling a function for each array element

25
New cards

.of()

Createa an array from a number of arguments

26
New cards

.pop()

Removes the last element of an array, and returns that element

27
New cards

.prototype

Allows you to add properties and methods to an Array object

28
New cards

.push()

Adds new elements to the end of an array, and returns the new length

29
New cards

.reduce()

Reduce the values of an array to a single value (going left-to-right)

30
New cards

.reduceRight()

Reduce the values of an array to a single value (going right-to-left)

31
New cards

.reverse()

Reverses the order of the elements in an array

32
New cards

.shift()

Removes the first element of an array, and returns that element

33
New cards

.slice()

Selects a part of an array, and returns the new array

34
New cards

.some()

Checks if any of the elements in an array pass a test

35
New cards

.sort()

Sorts the elements of an array

36
New cards

.splice()

Adds/Removes elements from an array

37
New cards

.toString()

Converts an array to a string, and returns the result

38
New cards

.unshift()

Adds new elements to the beginning of an array, and returns the new length

39
New cards

.valueOf()

Returns the primitive value of an array

40
New cards

.with()

Returns a new array with updated elements