Skip to content

is

is(target, key, value)

Checks if the key property of target object is equal to the specified value using strict equality.

ts
is({ a: 1, b: 2 }, "a", 1); // true
is({ a: 1, b: 2 }, "a", 2); // false
ts
pipe({ a: 1, b: 2 }, is("a", 1)); // true
pipe({ a: 1, b: 2 }, is("a", 2)); // false