JSFiddle - React, Tailwind, and code Playground

by nerdycap007

JavaScript

let arr = [{name: 'asd', b: 'ad'}, {name: 'bsd', b: 'ahd'}]

let someFunc = function(){
	if(!arr.includes({name: 'asd', b: 'ad'})) {
  	console.log('asdf')
  }
}
someFunc()