Skip to content

has

Checks if object has a key.

ts
import { has } from '@vielzeug/toolkit';

const item = { a: 1 };
has(item, 'a'); // true