JSFiddle - React, Tailwind, and code Playground

by pierian_design

JavaScript

let groupId = 1;              
let foundInCompare = 5;


if (!groupId || foundInCompare === groupId) {
    console.log(1);
} else {
		console.log(2);
}


console.log([1,2,3,4,5].slice(0, [1,2,3,4,5].length));