From f8d75a7ccf1d2c47a0fa74c1c3e97081ec461539 Mon Sep 17 00:00:00 2001 From: phaneendra Date: Fri, 7 Jul 2023 16:49:20 +0530 Subject: [PATCH] adding the at method --- languages/javascript.js | 1 + 1 file changed, 1 insertion(+) diff --git a/languages/javascript.js b/languages/javascript.js index 9a8abfb..f5fb858 100644 --- a/languages/javascript.js +++ b/languages/javascript.js @@ -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.