hasKey
hasKey(target, key)
Checks if target
object has the specified key
property.
ts
hasKey({ a: 1, b: 2 }, "a"); // true
hasKey({ a: 1, b: 2 }, "c"); // false
ts
pipe({ a: 1, b: 2 }, hasKey("a")); // true
pipe({ a: 1, b: 2 }, hasKey("c")); // false