You can use this
var a = [ [1,2] , [3,4] ];
var b = [1,2];
a = JSON.stringify(a);
b = JSON.stringify(b);
then you can do just an indexOf() to check if it is present
var c = a.indexOf(b);
if(c != -1){
console.log('element present');
}
More Related Contents:
- JavaScript Syntax error
- How to replace plain URLs with links?
- How to check if two arrays are equal with JavaScript? [duplicate]
- Where to place JavaScript in an HTML file?
- Get all Attributes from a HTML element with Javascript/jQuery
- ES6 Object Destructuring Default Parameters
- How to disable scroll without hiding it?
- Django csrf token + Angularjs
- Changing SVG image color with javascript
- JSF/PrimeFaces ajax updates breaks jQuery event listener function bindings
- Javascript “Not a Constructor” Exception while creating objects
- What is causing this error – “Fatal error: Unable to find local grunt”
- How to create dictionary and add key–value pairs dynamically?
- Don’t make functions within a loop [duplicate]
- How to set Angular 4 background image?
- How to iterate javascript object properties in the order they were written
- Check if parent window is iframe or not
- Regex for parsing single key: values out of JSON in Javascript
- Inspect the names/values of arguments in the definition/execution of a JavaScript function
- How to get asp.net client id at external javascript file
- How to display selected image without sending data to server?
- universal javascript for set homepage functionality [duplicate]
- How to detect which device view you’re on using Twitter Bootstrap API?
- Javascript-Setting background image of a DIV via a function and function parameter
- Accessing iframe from chrome extension
- How to create a sleep/delay in nodejs that is Blocking?
- How do I listen for triple clicks in JavaScript?
- How to make only some text in a text-box read-only while allowing the rest to be edited
- d3.js histogram with positive and negative values
- WebSocket: How to automatically reconnect after it dies