UNPKG

vike

Version:

(Replaces Next.js/Nuxt) 🔨 Composable framework to build advanced applications with flexibility and stability.

14 lines (13 loc) • 317 B
export { isObjectWithKeys }; import { isPlainObject } from './isPlainObject.js'; function isObjectWithKeys(obj, keys) { if (!isPlainObject(obj)) { return false; } for (const key of Object.keys(obj)) { if (!keys.includes(key)) { return false; } } return true; }