UNPKG

wix-style-react

Version:
14 lines 419 B
const acceptedPropsStart = 'data-'; export const filterDataProps = (props) => { const output = {}; for (const key in props) { if (props.hasOwnProperty(key) && key.length > acceptedPropsStart.length && key.startsWith(acceptedPropsStart)) { // @ts-ignore output[key] = props[key]; } } return output; }; //# sourceMappingURL=propsUtils.js.map