MCPcopy Create free account
hub / github.com/serverless/examples / hasSameProps

Function hasSameProps

validate.js:8–10  ·  view source on GitHub ↗
(obj1, obj2)

Source from the content-addressed store, hash-verified

6const rootDirectory = path.join(__dirname);
7/* utils */
8function hasSameProps(obj1, obj2) {
9 return Object.keys(obj1).every(prop => obj2.hasOwnProperty(prop));
10}
11
12function isEmptyObject(obj) {
13 return Object.keys(obj).length === 0 && obj.constructor === Object;

Callers 1

validate.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected