Every line of 'mdn array push' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
47 function push(n) { 48 stack.push(n); 49 }
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code
1758 function arrayPush(array, values) { 1759 var index = -1, 1760 length = values.length, 1761 offset = array.length; 1762 1763 while (++index < length) { 1764 array[offset + index] = values[index]; 1765 } 1766 return array; 1767 }
168 function arrayPush(array, values) { 169 var index = -1, length = values.length, offset = array.length 170 171 while (++index < length) { 172 array[offset + index] = values[index] 173 } 174 return array 175 }