JSFiddle - React, Tailwind, and code Playground

by irinablue

JavaScript

const input = {
    get: 'ff',
    where: []
};

const keys = Object.keys(input);

console.log(keys);

if (keys.includes('where')) console.log('yes');