5004f3c912911d91997a151e7d26e8c2.json
1.34 KB
{"ast":null,"code":"export default function getDataOrAriaProps(props) {\n return Object.keys(props).reduce(function (prev, key) {\n if ((key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-' || key === 'role') && key.substr(0, 7) !== 'data-__') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n}","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/antd/es/_util/getDataOrAriaProps.js"],"names":["getDataOrAriaProps","props","Object","keys","reduce","prev","key","substr"],"mappings":"AAAA,eAAe,SAASA,kBAAT,CAA4BC,KAA5B,EAAmC;AAChD,SAAOC,MAAM,CAACC,IAAP,CAAYF,KAAZ,EAAmBG,MAAnB,CAA0B,UAAUC,IAAV,EAAgBC,GAAhB,EAAqB;AACpD,QAAI,CAACA,GAAG,CAACC,MAAJ,CAAW,CAAX,EAAc,CAAd,MAAqB,OAArB,IAAgCD,GAAG,CAACC,MAAJ,CAAW,CAAX,EAAc,CAAd,MAAqB,OAArD,IAAgED,GAAG,KAAK,MAAzE,KAAoFA,GAAG,CAACC,MAAJ,CAAW,CAAX,EAAc,CAAd,MAAqB,SAA7G,EAAwH;AACtHF,MAAAA,IAAI,CAACC,GAAD,CAAJ,GAAYL,KAAK,CAACK,GAAD,CAAjB;AACD;;AAED,WAAOD,IAAP;AACD,GANM,EAMJ,EANI,CAAP;AAOD","sourcesContent":["export default function getDataOrAriaProps(props) {\n return Object.keys(props).reduce(function (prev, key) {\n if ((key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-' || key === 'role') && key.substr(0, 7) !== 'data-__') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n}"]},"metadata":{},"sourceType":"module"}