UNPKG

prop-types-exact

Version:

For use with React PropTypes. Will error on any prop not explicitly specified.

11 lines (7 loc) 223 B
'use strict'; var isArray = require('isarray'); // TODO: inline, semver-major /** @type {(x: unknown) => x is object} */ module.exports = function isPlainObject(x) { return x && typeof x === 'object' && !isArray(x); };