compare two arrays
var a1 = [1,false,2,3,"dude"];
var a2 = [1,false,2,3,"dude"];
//check if arrays are equal
if(JSON.stringify(a1) === JSON.stringify(a2)){
//arrays are equal
}
Also in JavaScript:
- js add element to array
- node js download file to folder
- less than equal to in javascript
- exclude vales from array in js
- javascript get object property with variable
- reactjs update state example
- get query param javascript
- mock api inside react component jest async
- three js cdn
- NameError: name 'jsonify' is not defined
- how to set markers in d3.js map projection
- angular date formats
- javascript dom to image
- indexof()
- add class javascript
- local storage javascript array
- react redirect after login
- how to send message to specific client using ws node js
- how to get element by attribute value in javascript
- Material-ui Add icon
- if javascript
- SQL Developer store procedure insert json file to blob
- iife
- updating a key value on javascript object es6