UNPKG

shineout

Version:

Shein 前端组件库

10 lines 243 B
// export default (function (props) { if (!props) return {}; var keys = Object.keys(props); return keys.reduce(function (acc, key) { if (key.indexOf('data-') !== 0) return acc; acc[key] = props[key]; return acc; }, {}); });