UNPKG

react-a11y

Version:

Warns about potential accessibility issues with your React elements.

16 lines (13 loc) 351 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var hasProp = function hasProp(props, any) { if (Array.isArray(any)) { return any.reduce(function (acc, prop) { return acc || hasProp(props, prop); }, false); } return props && any && any in props; }; exports.default = hasProp;