UNPKG

vike

Version:

The Framework *You* Control - Next.js & Nuxt alternative for unprecedented flexibility and dependability.

16 lines (15 loc) 440 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isObjectWithKeys = isObjectWithKeys; const isPlainObject_js_1 = require("./isPlainObject.js"); function isObjectWithKeys(obj, keys) { if (!(0, isPlainObject_js_1.isPlainObject)(obj)) { return false; } for (const key of Object.keys(obj)) { if (!keys.includes(key)) { return false; } } return true; }