Check if an object matches a simple schema `{ key: 'type' }`.
typeof obj[k]
schema[k]
function validate(obj, schema) { for (const k in schema) { if (typeof obj[k] !== schema[k]) return false; } return true; }