UNPKG

usehook

Version:
3 lines (2 loc) 507 B
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.Usehook=n()}(this,function(){"use strict";return function(e){var n=e.hook,o=n[0],t=n.slice(1),i=e.children,r=function(e,n){if(null==e)return{};var o,t,i={},r=Object.keys(e);for(t=0;t<r.length;t++)o=r[t],n.indexOf(o)>=0||(i[o]=e[o]);return i}(e,["hook","children"]),f=o.apply(void 0,t);return i.apply(void 0,[f].concat(r))}}); //# sourceMappingURL=usehook.umd.min.js.map