JSFiddle - React, Tailwind, and code Playground

by Kristian Jabilles

JavaScript

const test = [{
	slug: 'asd'
}]

const asd = test.find(cat => cat.slug === 'test');

console.log( !!asd )