Skip to content

Commit

Permalink
Merge pull request LeCoupa#337 from phaneendra24/adding-js-arrayMethod
Browse files Browse the repository at this point in the history
adding the at() method
  • Loading branch information
LeCoupa authored Jul 11, 2023
2 parents 5ff4803 + f8d75a7 commit 8557d4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions languages/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ array.splice(start, deleteCount, item1, item2, ...) // Adds and/or removes elem
arr.unshift([element1[, ...[, elementN]]]) // Adds one or more elements to the front of an array and returns the new length of the array.

// Instance: accessor methods
arr.at(index) // Returns the element at the specified index in the array.
arr.concat(value1[, value2[, ...[, valueN]]]) // Returns a new array comprised of this array joined with other array(s) and/or value(s).
arr.includes(searchElement, fromIndex) // Determines whether an array contains a certain element, returning true or false as appropriate.
arr.indexOf(searchElement[, fromIndex]) // Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.
Expand Down

0 comments on commit 8557d4f

Please sign in to comment.